[Mono-bugs] [Bug 77771][Nor] New - [GMCS] generic enumerator is rejected as Invalid IL code

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun Mar 12 14:28:27 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 atsushi at ximian.com.


--- shadow/77771	2006-03-12 14:28:27.000000000 -0500
+++ shadow/77771.tmp.23144	2006-03-12 14:28:27.000000000 -0500
@@ -0,0 +1,53 @@
+Bug#: 77771
+Product: Mono: Runtime
+Version: 1.1
+OS Details: 
+Status: NEW   
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: atsushi at ximian.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: [GMCS] generic enumerator is rejected as Invalid IL code
+The following example code, compiled by either gmcs or csc, caused Invalid
+IL code error:
+using System;
+using System.Collections.Generic;
+public class Test
+        public static void Main ()
+        {
+                List<string> list = new List<string> ();
+                list.Add ("test");
+                foreach (string s in list)
+                        Console.WriteLine (s);
+        }
+Actual Results:
+Unhandled Exception: System.InvalidProgramException: Invalid IL code in
+Enumerator:.ctor (System.Collections.Generic.List`1): IL_0011: ldfld    
+Expected Results:
+no error.
+How often does this happen? 
+Additional Information:
+I think this problem happened only within one or two days since I had
+almost the latest runtime before the last svnup.

More information about the mono-bugs mailing list