[Mono-bugs] [Bug 51113][Wis] New - mcs doesn't flag cs1023 correctly

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 18 Nov 2003 13:33:45 -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 gonzalo@ximian.com.

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

--- shadow/51113	2003-11-18 13:33:44.000000000 -0500
+++ shadow/51113.tmp.22096	2003-11-18 13:33:45.000000000 -0500
@@ -0,0 +1,35 @@
+Bug#: 51113
+Product: Mono/MCS
+Version: unspecified
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: gonzalo@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: mcs doesn't flag cs1023 correctly
+
+Try compiling this:
+class Test
+{
+        static void Main ()
+        {
+                for (int i = 0; i < 1000000; i++)
+                        int k = i;
+        }
+}
+
+Actual results:
+mcsbug1.cs(8) error CS1002: Expecting `;'
+Compilation failed: 1 error(s), 0 warnings
+
+Expected results:
+mcsbug1.cs(8) error CS1023: an embedded statement cannot be a declaration
+or a labeled statement.