Bug 320532 (MONO77771) - [GMCS] generic enumerator is rejected as Invalid IL code
Summary: [GMCS] generic enumerator is rejected as Invalid IL code
Status: RESOLVED MOVED
Alias: MONO77771
Product: Mono: Runtime
Classification: Mono
Component: misc (show other bugs)
Version: 1.1
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Mono Bugs
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-12 21:28 UTC by Atsushi Enomoto
Modified: 2007-09-15 21:24 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 19:51:12 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"