[Mono-bugs] [Bug 59267][Nor] New - using 'params' in constructor definition causes internal error

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Fri, 28 May 2004 16:35:01 -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 vargaz@freemail.hu.

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

--- shadow/59267	2004-05-28 16:35:01.000000000 -0400
+++ shadow/59267.tmp.21115	2004-05-28 16:35:01.000000000 -0400
@@ -0,0 +1,53 @@
+Bug#: 59267
+Product: Mono: Compilers
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: vargaz@freemail.hu               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: using 'params' in constructor definition causes internal error
+
+When compiling the following program, mcs crashes with:
+
+Unhandled Exception: Mono.CSharp.InternalErrorException: Internal error
+in <0x00375> 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 <0x00363> Mono.CSharp.Constructor:Emit (Mono.CSharp.TypeContainer)
+in <0x00413> Mono.CSharp.TypeContainer:Emit ()
+in <0x008d0> Mono.CSharp.RootContext:EmitCode ()
+in <0x00c70> Mono.CSharp.Driver:MainDriver (string[])
+in <0x00012> Mono.CSharp.Driver:Main (string[])
+
+<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
+using System;
+
+	internal class ClassFormatError
+	{
+		internal ClassFormatError(string msg, params object[] p)
+		{
+		}
+	}
+
+	internal class UnsupportedClassVersionError : ClassFormatError
+	{
+		internal UnsupportedClassVersionError(string msg)
+			: base(msg)
+		{
+		}
+	}
+<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
+
+This prevents IKVM from being compiled by mcs.