[Mono-bugs] [Bug 335009] New: Compiler crash: System.InvalidOperationException

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Oct 18 16:27:31 EDT 2007


           Summary: Compiler crash: System.InvalidOperationException
           Product: Mono: Compilers
           Version: unspecified
          Platform: i686
        OS/Version: Ubuntu
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: C#
        AssignedTo: rharinath at novell.com
        ReportedBy: frederik.carlier at carlier-online.be
         QAContact: mono-bugs at ximian.com
          Found By: ---

Created an attachment (id=179333)
 --> (https://bugzilla.novell.com/attachment.cgi?id=179333)
Source code required to reproduce the issue

The compiler crashes when compiling the attached code, as such:

fcarlier at col-clt-05:~/Desktop/SharpDevelop/src/AddIns/Misc/SharpReport$ gmcs
Test.cs -r:System.Drawing -r:System.Data -r:System.Windows.Forms
Test.cs(57,68): error CS0122: `System.Data.OleDb.OleDbException.Message' is
inaccessible due to its protection level
(Location of the symbol related to previous error)
Exception caught by the compiler while compiling:
   Block that caused the problem begin at: Test.cs(36,37):
                     Block being compiled: [Test.cs(56,84):,Test.cs(58,41):]
System.InvalidOperationException: Operation is not valid due to the current
state of the object
Internal compiler error at Test.cs(36,37):: exception caught while emitting
MethodBuilder [SharpReportEngine::SetupDataContainer]

Unhandled Exception: System.InvalidOperationException: Operation is not valid
due to the current state of the object
  at Mono.CSharp.FlowBranchingException.AddSibling (Mono.CSharp.UsageVector
sibling) [0x00000] 
  at Mono.CSharp.FlowBranching.CreateSibling (Mono.CSharp.Block block,
SiblingType type) [0x00000] 
  at Mono.CSharp.FlowBranching.CreateSibling () [0x00000] 
  at Mono.CSharp.If.Resolve (Mono.CSharp.EmitContext ec) [0x00000] 
  at Mono.CSharp.Block.Resolve (Mono.CSharp.EmitContext ec) [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]

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