[Mono-bugs] [Bug 618522] New: Compiler InternalError when compiling derived class that tries to call base class private method

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Jun 29 20:21:44 EDT 2010


http://bugzilla.novell.com/show_bug.cgi?id=618522

http://bugzilla.novell.com/show_bug.cgi?id=618522#c0


           Summary: Compiler InternalError when compiling derived class
                    that tries to call base class private method
    Classification: Mono
           Product: MonoTouch
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Tools
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: fak at kruegersystems.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


Created an attachment (id=372704)
 --> (http://bugzilla.novell.com/attachment.cgi?id=372704)
Project demoing bug

Description of Problem:

This code:

    class B
    {
        void Setup ()
        {
        }
    }

    class D : B
    {
        void Setup ()
        {
            base.Setup ();
        }
    }

Causes this compiler error:

Unhandled Exception: Mono.CSharp.InternalErrorException:
/Users/fak/Projects/Junk/CompilerBug/Main.cs(13,15): CompilerBug.D --->
System.InvalidOperationException: Method 'CompilerBug.D.Setup' does not have a
method body.
  at System.Reflection.Emit.MethodBuilder.fixup () [0x00000] in <filename
unknown>:0 
  at System.Reflection.Emit.TypeBuilder.CreateType () [0x00000] in <filename
unknown>:0 
  at Mono.CSharp.TypeContainer.CloseType () [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at Mono.CSharp.TypeContainer.CloseType () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.RootContext.CloseTypes () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.Driver.Compile () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.Driver.Main (System.String[] args) [0x00000] in <filename
unknown>:0 
Build complete -- 1 error, 0 warnings

-- 
Configure bugmail: http://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