[Mono-bugs] [Bug 80381][Wis] New - mcs crashes when compiling separate "corlib" type

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Dec 27 16:50:21 EST 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 jonpryor at vt.edu.

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

--- shadow/80381	2006-12-27 16:50:21.000000000 -0500
+++ shadow/80381.tmp.11057	2006-12-27 16:50:21.000000000 -0500
@@ -0,0 +1,62 @@
+Bug#: 80381
+Product: Mono: Compilers
+Version: 1.2
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: C#
+AssignedTo: rharinath at novell.com                            
+ReportedBy: jonpryor at vt.edu               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: mcs crashes when compiling separate "corlib" type
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+
+mcs and gmcs crash when trying to compile a file that has a type with the
+same name as a builtin.
+
+Steps to reproduce the problem:
+1. Compile the following code:
+
+	namespace System {
+		public struct Int32 {
+		}
+	}
+
+Actual Results:
+
+Unhandled Exception: System.NullReferenceException: Object reference not
+set to an instance of an object
+  at Mono.CSharp.TypeManager.DropGenericTypeArguments (System.Type t) [0x00000]
+  at Mono.CSharp.TypeContainer.CheckRecursiveDefinition
+(Mono.CSharp.TypeContainer tc) [0x00000]
+  at Mono.CSharp.TypeContainer.DefineTypeBuilder () [0x00000]
+  at Mono.CSharp.TypeContainer.DefineType () [0x00000]
+  at Mono.CSharp.Namespace.LookupType (System.String name, Location loc)
+[0x00000]
+  at Mono.CSharp.Namespace.Lookup (Mono.CSharp.DeclSpace ds, System.String
+name, Location loc) [0x00000]
+  at Mono.CSharp.TypeManager.CoreLookupType (System.String ns_name,
+System.String name) [0x00000]
+  at Mono.CSharp.TypeManager.InitEnumUnderlyingTypes () [0x00000]
+  at Mono.CSharp.TypeManager.InitCoreTypes () [0x00000]
+  at Mono.CSharp.Driver.MainDriver (System.String[] args) [0x00000]
+  at Mono.CSharp.Driver.Main (System.String[] args) [0x00000]
+
+
+Expected Results:
+
+No crash, and (preferably) the creation of an assembly with the type
+System.Int32.
+
+How often does this happen? 
+
+Always.


More information about the mono-bugs mailing list