[Mono-bugs] [Bug 397213] New: Compiler fails when dtor follows an event definition

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Jun 4 14:17:24 EDT 2008


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


           Summary: Compiler fails when dtor follows an event definition
           Product: Mono: Compilers
           Version: 1.9.0
          Platform: Other
        OS/Version: openSUSE 10.3
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: C#
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: derekd at omni-ts.com
         QAContact: mono-bugs at lists.ximian.com
                CC: stephane at omni-ts.com
          Found By: ---


Created an attachment (id=220178)
 --> (https://bugzilla.novell.com/attachment.cgi?id=220178)
compiler error testcase

To Reproduce:
1. Create a new class
2. Create the follow methods in the order given:
3. Add an empty constructor
4. Add an empty event definition
5. Add an empty destructor
6. Compile

In the test case given, Mono gives compiler exceptions at the line where the
destructor is declared.

Exception caught by the compiler while compiling:
   Block that caused the problem begin at: TestCase.cs(27,18):
Mono.CSharp.InternalErrorException: parameter information mismatch
Internal compiler error at TestCase.cs(27,18):: exception caught while emitting
MethodBuilder [TestCase::Finalize]

Unhandled Exception: Mono.CSharp.InternalErrorException: parameter information
mismatch
  at Mono.CSharp.ToplevelBlock.ResolveMeta (Mono.CSharp.EmitContext ec,
Mono.CSharp.Parameters ip) [0x00000] 
  at Mono.CSharp.EmitContext.ResolveTopBlock (Mono.CSharp.EmitContext
anonymous_method_host, Mono.CSharp.ToplevelBlock block, Mono.CSharp.Parameters
ip, IMethodData md, System.Boolean& unreachable) [0x00000] 


If you move the dtor above the event definition, then the errors do not occur.


-- 
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