[Mono-bugs] [Bug 346484] New: Internal compiler error

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Dec 6 07:24:22 EST 2007


           Summary: Internal compiler error
           Product: Mono: Compilers
           Version: 1.2.5
          Platform: i386
        OS/Version: Mac OS X 10.4
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: C#
        AssignedTo: mono-bugs at ximian.com
        ReportedBy: joe at unity3d.com
         QAContact: mono-bugs at ximian.com
          Found By: ---

gmcs the following .cs file:

class MainClass
        static void Main ()
                System.Console.WriteLine((true ? "" : "") "text");      

Gmcs output is:

Unhandled Exception: Mono.CSharp.InternalErrorException:
/Users/joe/Desktop/test2.cs(1,7): MainClass --->
System.InvalidOperationException: Method 'MainClass.Main' does not have a
method body.
  at System.Reflection.Emit.MethodBuilder.fixup () [0x00000] 
  at System.Reflection.Emit.TypeBuilder.CreateType () [0x00000] 
  at Mono.CSharp.TypeContainer.CloseType () [0x00000] --- End of inner
exception stack trace ---

  at Mono.CSharp.TypeContainer.CloseType () [0x00000] 
  at Mono.CSharp.RootContext.CloseTypes () [0x00000] 
  at Mono.CSharp.Driver.MainDriver (System.String[] args) [0x00000] 
  at Mono.CSharp.Driver.Main (System.String[] args) [0x00000] 

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

More information about the mono-bugs mailing list