[Mono-bugs] [Bug 30235][Nor] New - MCS crashes with correct code.
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
12 Sep 2002 14:17:43 -0000
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 ric@users.sourceforge.net.
http://bugzilla.ximian.com/show_bug.cgi?id=30235
--- shadow/30235 Thu Sep 12 10:17:43 2002
+++ shadow/30235.tmp.5868 Thu Sep 12 10:17:43 2002
@@ -0,0 +1,47 @@
+Bug#: 30235
+Product: Mono/MCS
+Version: unspecified
+OS: other
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: ric@users.sourceforge.net
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: MCS crashes with correct code.
+
+The folloging code:
+
+namespace T1
+{
+ public class T
+ {
+ public static void Main (string[] args)
+ {
+ A a = new A ();
+ }
+
+ private class A
+ {
+ delegate void D (int i);
+ }
+ }
+}
+
+makes MCS throw an exception:
+
+Unhandled Exception: System.InvalidOperationException: type already created
+in <0x0005b> 00 System.Reflection.Emit.TypeBuilder:CreateType ()
+in <0x00609> 00 Mono.CSharp.TypeContainer:CloseType ()
+in <0x005c1> 00 Mono.CSharp.RootContext:CloseTypes ()
+in <0x007b4> 00 Mono.CSharp.Driver:MainDriver (string[])
+in <0x0000b> 00 Mono.CSharp.Driver:Main (string[])
+
+I have a larger program that throws the same exection today but compiled
+correctly two days ago, so this is a regression.