[Mono-bugs] [Bug 60219][Blo] New - C# compiler throws InternalErrorException in ConstructorInitializer:GetOverloadedConstructor
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Tue, 15 Jun 2004 12:34:51 -0400 (EDT)
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 patrick@kinitos.com.
http://bugzilla.ximian.com/show_bug.cgi?id=60219
--- shadow/60219 2004-06-15 12:34:51.000000000 -0400
+++ shadow/60219.tmp.16913 2004-06-15 12:34:51.000000000 -0400
@@ -0,0 +1,65 @@
+Bug#: 60219
+Product: Mono: Compilers
+Version: unspecified
+OS: Debian Woody
+OS Details: Debian Sarge
+Status: NEW
+Resolution:
+Severity:
+Priority: Blocker
+Component: C#
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: patrick@kinitos.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: C# compiler throws InternalErrorException in ConstructorInitializer:GetOverloadedConstructor
+
+When compiling the following classes the compiler throws uncaught
+exception Mono.CSharp.InternalErrorException.
+
+Code for classes;
+// begin
+public class MyClass {
+ public MyClass( params System.String [] parameters )
+ {
+ }
+}
+
+public class ChildClass : MyClass {}
+// end
+
+Output from c# compiler;
+Unhandled Exception: Mono.CSharp.InternalErrorException: Internal error
+in <0x00541> Mono.CSharp.ConstructorInitializer:GetOverloadedConstructor
+(Mono.CSharp.TypeContainer)
+in <0x00021> Mono.CSharp.ConstructorInitializer:CheckObsoleteAttribute
+(Mono.CSharp.TypeContainer,Mono.CSharp.Location)
+in <0x0007b> Mono.CSharp.ConstructorBaseInitializer:CheckObsoleteAttribute
+(Mono.CSharp.TypeContainer,Mono.CSharp.Location)
+in <0x00369> Mono.CSharp.Constructor:Emit (Mono.CSharp.TypeContainer)
+in <0x00429> Mono.CSharp.TypeContainer:Emit ()
+in <0x008de> Mono.CSharp.RootContext:EmitCode ()
+in <0x00c76> Mono.CSharp.Driver:MainDriver (string[])
+in <0x00012> Mono.CSharp.Driver:Main (string[])
+
+command line options used;
+mcs -target:library -out:myclass.dll MyClass.cs
+
+specific version of mono;
+test@linuxvpc:~/depot/Product/Dev/Platform/temp$ mono -V
+Mono JIT compiler version 0.95.20040611, (C) 2002-2004 Novell, Inc and
+Contributors. www.go-mono.com
+ TLS: normal
+ GC: Included Boehm (with typed GC)
+ SIGSEGV : normal
+ Globalization: none
+
+Note this works ok for us in beta 1.
+
+This seems to be very similar to bug 59267, except that the testcase in it
+succeeds for me and this case seems alot more general. I have tried
+playing with the test above and i can't come up with a simpler case.
+Removing inheritence or providing a constructor with no params, will both
+make it work.