Bugzilla – Bug 320532
[GMCS] generic enumerator is rejected as Invalid IL code
Last modified: 2007-09-15 21:24:46 UTC
---- Reported by atsushi@ximian.com 2006-03-12 14:28:27 MST ---- 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 0x0a0000c9 Expected Results: no error. How often does this happen? consistently. Additional Information: I think this problem happened only within one or two days since I had almost the latest runtime before the last svnup. ---- Additional Comments From atsushi@ximian.com 2006-03-12 14:37:28 MST ---- Kamil beat me by a few minutes ;-) *** This bug has been marked as a duplicate of https://bugzilla.novell.com/show_bug.cgi?id=MONO77770 *** Unknown operating system unknown. Setting to default OS "Other". This bug was marked DUPLICATE in the database it was moved from. Changing resolution to "MOVED"