[Mono-bugs] [Bug 53058][Maj] Changed - Invalid IL code on loop + switch
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Tue, 20 Jan 2004 11:00:00 -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 lluis@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=53058
--- shadow/53058 2004-01-20 07:06:35.000000000 -0500
+++ shadow/53058.tmp.20287 2004-01-20 11:00:00.000000000 -0500
@@ -1,13 +1,13 @@
Bug#: 53058
Product: Mono/Compilers
Version: unspecified
OS: unknown
OS Details:
-Status: RESOLVED
-Resolution: DUPLICATE
+Status: REOPENED
+Resolution:
Severity: Unknown
Priority: Major
Component: C#
AssignedTo: mono-bugs@ximian.com
ReportedBy: lluis@ximian.com
QAContact: mono-bugs@ximian.com
@@ -46,6 +46,35 @@
*** This bug has been marked as a duplicate of 52707 ***
------- Additional Comments From martin@ximian.com 2004-01-20 07:06 -------
The test case looks different, but it was the same underlying
problem, so my fix for #52707 also fixed this bug.
+
+------- Additional Comments From lluis@ximian.com 2004-01-20 11:00 -------
+There is still something that doesn't work. This test case variant
+fails to compile:
+
+using System;
+
+class Test
+{
+ public static void Main ()
+ {
+ int n=0;
+ while (true)
+ {
+ if (++n==5) break;
+
+ switch (0) {
+ case 0: break;
+ }
+ }
+ Console.WriteLine ("End");
+ }
+}
+
+I get:
+cls.cs(16) warning CS0162: Unreachable code detected
+(Line 16 is the Console.WriteLine)
+
+