[Mono-bugs] [Bug 325084] Mono C# compiler version 1.2.4.0 crashes

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Nov 6 17:20:09 EST 2007


https://bugzilla.novell.com/show_bug.cgi?id=325084#c2





--- Comment #2 from Sebastien Pouliot <spouliot at novell.com>  2007-11-06 15:20:09 MST ---
SVN HEAD provides a little more information about the problem:

gmcs 324084.cs
324084.cs(39,9): error CS0103: The name `c1' does not exist in the current
context
Exception caught by the compiler while compiling:
   Block that caused the problem begin at: 324084.cs(25,15):
                     Block being compiled: [324084.cs(38,7):,324084.cs(40,7):]
System.InvalidOperationException: Operation is not valid due to the current
state of the object
Internal compiler error at 324084.cs(25,15):: exception caught while emitting
MethodBuilder [Test::TestFunction]

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


The reported error, prior to the crash, is correct (i.e. also reported on
Windows).

C:\temp>csc 324084.cs
Microsoft (R) Visual C# 2005 Compiler version 8.00.50727.42
for Microsoft (R) Windows (R) 2005 Framework version 2.0.50727
Copyright (C) Microsoft Corporation 2001-2005. All rights reserved.

324084.cs(39,9): error CS0103: The name 'c1' does not exist in the current
        context


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