[Mono-bugs] [Bug 77770][Wis] New - [GMCS] Regression in IL verification of generic code from mscorlib

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun Mar 12 14:24:15 EST 2006

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 nazgul at omega.pl.


--- shadow/77770	2006-03-12 14:24:15.000000000 -0500
+++ shadow/77770.tmp.23084	2006-03-12 14:24:15.000000000 -0500
@@ -0,0 +1,61 @@
+Bug#: 77770
+Product: Mono: Runtime
+Version: 1.0
+OS Details: 
+Status: NEW   
+Priority: Wishlist
+Component: misc
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: nazgul at omega.pl               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: [GMCS] Regression in IL verification of generic code from mscorlib
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+One of the recent patches (in svn) caused error when using enumerator from
+System.Collections.Generic.Dictionary class.
+Steps to reproduce the problem:
+1. Compile and run following program
+using System.Collections.Generic;
+class M { 
+ static void Main() { 
+   Dictionary <string, object> a = new Dictionary <string, object>();
+   a.Add ("a", null);
+   foreach (object x in a) {
+     System.Console.WriteLine (x);
+   }
+ } 
+Actual Results:
+Unhandled Exception: System.InvalidProgramException: Invalid IL code in
+Enumerator:.ctor (System.Collections.Generic.Dictionary`2): IL_0009: ldfld
+    0x0a000072
+in <0x00000> <unknown method>
+in <0x00020>
+in <0x0004e> M:Main ()
+Expected Results:
+[a, ]
+How often does this happen? 
+With recent svn always.
+Additional Information:
+This broke our Nemerle build/test few days ago.

More information about the mono-bugs mailing list