https://bugzilla.novell.com/show_bug.cgi?id=346484


           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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
         QAContact: [EMAIL PROTECTED]
          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] 
d


-- 
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.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to