[Mono-bugs] [Bug 38291][Nor] New - mcs gets exception when compiling this incorrect code

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Tue, 18 Feb 2003 18:46:38 -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 pt99par@student.bth.se.

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

--- shadow/38291	Tue Feb 18 18:46:37 2003
+++ shadow/38291.tmp.28902	Tue Feb 18 18:46:37 2003
@@ -0,0 +1,44 @@
+Bug#: 38291
+Product: Mono/MCS
+Version: unspecified
+OS: 
+OS Details: Mandrake 9.0
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: pt99par@student.bth.se               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: mcs gets exception when compiling this incorrect code
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+
+When compiling this incorrect code the compiler crashes:
+NameValueCollection c = new NameValueCollection();c.Item["k"]="v";
+
+Steps to reproduce the problem:
+1. Compile the code above
+
+Actual Results:
+
+[pure@p2 tmp]$ mcs MonoBug.cs
+Exception caught by the compiler while compiling:
+   Block that caused the problem begin at: MonoBug.cs: (12)
+                     Block being compiled: [MonoBug.cs: (12),MonoBug.cs: (15)]
+
+
+Expected Results:
+
+some compilation error
+
+How often does this happen? 
+allways
+
+Additional Information: