[Mono-bugs] [Bug 79724][Wis] New - internal compiler error with enums

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun Oct 22 15:55:32 EDT 2006


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by joe at otee.dk.

http://bugzilla.ximian.com/show_bug.cgi?id=79724

--- shadow/79724	2006-10-22 15:55:32.000000000 -0400
+++ shadow/79724.tmp.10200	2006-10-22 15:55:32.000000000 -0400
@@ -0,0 +1,72 @@
+Bug#: 79724
+Product: Mono: Compilers
+Version: 1.1
+OS: 
+OS Details: 1.1.18 ppc
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: C#
+AssignedTo: rharinath at novell.com                            
+ReportedBy: joe at otee.dk               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: internal compiler error with enums
+
+When compiling the following cs file, i get an exception inside mcs instead of a real error:
+
+public enum MyEnum
+{
+	Foo = 1
+}
+
+public class Test
+{
+	static void Main ()
+	{
+		MyEnum theEnum = MyEnum.Foo;
+		if (theEnum == theEnum.Foo)
+		{
+			Debug.Log("This is correct");
+		}
+	}
+}
+
+
+----
+
+the error outputted is:
+
+xception caught by the compiler while compiling:
+   Block that caused the problem begin at: /Users/nicholas/Desktop/bug.cs(8,14):
+                     Block being compiled: [/Users/nicholas/Desktop/bug.cs(9,2):,/Users/nicholas/
+Desktop/bug.cs(15,2):]
+System.NotSupportedException: The invoked member is not supported in a dynamic module.
+
+Unhandled Exception: System.NotSupportedException: The invoked member is not supported in 
+a dynamic module.
+  at System.Reflection.Emit.AssemblyBuilder.get_Location () [0x00000] 
+  at Mono.CSharp.Report.SymbolRelatedToPreviousError (System.Reflection.MemberInfo mi) 
+[0x00000] 
+  at Mono.CSharp.FieldExpr.ResolveMemberAccess (Mono.CSharp.EmitContext ec, 
+Mono.CSharp.Expression left, Location loc, Mono.CSharp.SimpleName original) [0x00000] 
+  at Mono.CSharp.MemberAccess.DoResolve (Mono.CSharp.EmitContext ec, 
+Mono.CSharp.Expression right_side) [0x00000] 
+  at Mono.CSharp.MemberAccess.DoResolve (Mono.CSharp.EmitContext ec) [0x00000] 
+  at Mono.CSharp.Expression.Resolve (Mono.CSharp.EmitContext ec, ResolveFlags flags) 
+[0x00000] 
+  at Mono.CSharp.Expression.Resolve (Mono.CSharp.EmitContext ec) [0x00000] 
+  at Mono.CSharp.Binary.DoResolve (Mono.CSharp.EmitContext ec) [0x00000] 
+  at Mono.CSharp.Expression.Resolve (Mono.CSharp.EmitContext ec, ResolveFlags flags) 
+[0x00000] 
+  at Mono.CSharp.Expression.Resolve (Mono.CSharp.EmitContext ec) [0x00000] 
+  at Mono.CSharp.Expression.ResolveBoolean (Mono.CSharp.EmitContext ec, 
+Mono.CSharp.Expression e, Location loc) [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) [


More information about the mono-bugs mailing list