[Mono-bugs] [Bug 70758][Wis] New - mcs NullRefEx after error
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Wed, 22 Dec 2004 17:00:02 -0500 (EST)
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 grompf@sublimeintervention.com.
http://bugzilla.ximian.com/show_bug.cgi?id=70758
--- shadow/70758 2004-12-22 17:00:01.000000000 -0500
+++ shadow/70758.tmp.2025 2004-12-22 17:00:02.000000000 -0500
@@ -0,0 +1,43 @@
+Bug#: 70758
+Product: Mono: Compilers
+Version: 1.1
+OS:
+OS Details: OSX 10.3.4
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: C#
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: grompf@sublimeintervention.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: mcs NullRefEx after error
+
+The following code:
+
+struct bar {
+ foo foo;
+}
+
+when compiled by mcs will properly give:
+t.cs(2) error CS0246: Cannot find type 'foo'
+
+
+but also causes a nullrefex in the structcycles:
+
+Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of
+an object
+in <0x001a4> Mono.CSharp.TypeManager:CheckStructCycles
+(Mono.CSharp.TypeContainer,System.Collections.Hashtable,System.Collections.Hashtable)
+in <0x00050> Mono.CSharp.TypeManager:CheckStructCycles
+(Mono.CSharp.TypeContainer,System.Collections.Hashtable)
+in <0x00c18> Mono.CSharp.RootContext:PopulateTypes ()
+in <0x00d98> Mono.CSharp.Driver:MainDriver (string[])
+in <0x00024> Mono.CSharp.Driver:Main (string[])
+
+Leaving this as wishlist as it is minor
+
+-kangaroo