[Mono-bugs] [Bug 76198][Maj] New - gmcs aborts when mixing generics with anonymous delegates

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Sep 23 09:06:52 EDT 2005

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by jonpryor at vt.edu.


--- shadow/76198	2005-09-23 09:06:52.000000000 -0400
+++ shadow/76198.tmp.28530	2005-09-23 09:06:52.000000000 -0400
@@ -0,0 +1,54 @@
+Bug#: 76198
+Product: Mono: Compilers
+Version: 1.1
+OS: other
+OS Details: 
+Status: NEW   
+Priority: Major
+Component: C#
+AssignedTo: rharinath at novell.com                            
+ReportedBy: jonpryor at vt.edu               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: gmcs aborts when mixing generics with anonymous delegates
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+gmcs aborts compiling code that returns an anonymous delegate for a generic
+method returning a generic delegate.
+Steps to reproduce the problem:
+1. Compile the attached program with gmcs: gmcs functor.cs
+2. Watch the fireworks.
+Actual Results:
+jon at balthasar:tmp$ gmcs functor.cs
+** ERROR **: file metadata.c: line 2758 (mono_type_size): assertion failed:
+Expected Results:
+No mono runtime error.  At minimum a useful gmcs error (if the C# code
+isn't valid, though it looks like it should be valid to me).
+How often does this happen? 
+Additional Information:
+This can be worked around by doing the work that the anonymous delegate
+should be doing for me.  See the mono-devel-list email for a workaround:

More information about the mono-bugs mailing list