[Mono-bugs] [Bug 327520] New: gmcs generating invalid IL with extension methods.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sat Sep 22 16:47:09 EDT 2007


           Summary: gmcs generating invalid IL with extension methods.
           Product: Mono: Compilers
           Version: 1.2
          Platform: 64bit
        OS/Version: openSUSE 10.3
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: C#
        AssignedTo: rharinath at novell.com
        ReportedBy: benji.weber at gmail.com
         QAContact: mono-bugs at ximian.com
          Found By: ---

The following code compiles with 

gmcs ./Test.cs -langversion:linq

but when run it fails with 

Unhandled Exception: System.InvalidProgramException: Invalid IL code in
Test:Main (string[]): IL_0001: call      0x06000003

I'm not certain whether the code is valid or not, but there is no compiler

using System;

public class Test
        public static void Main(String[] args)

public static class Lol
        public static bool OneEleven(this object o)
                return true;

Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the mono-bugs mailing list