[Mono-bugs] [Bug 37708][Nor] Changed - mcs miscompiles break statement

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Sun, 23 Feb 2003 08:29:07 -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 martin@ximian.com.

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

--- shadow/37708	Sun Feb 16 19:24:46 2003
+++ shadow/37708.tmp.18004	Sun Feb 23 08:29:07 2003
@@ -71,6 +71,34 @@
 seems likely that these are both symptoms of the same bug. (And 
 interestingly, it's the latter case that I actually noticed first.) 
  
 
 ------- Additional Comments From miguel@ximian.com  2003-02-12 19:56 -------
 I am assigning this bug to Martin, as this is a flow analysis bug.
+
+------- Additional Comments From martin@ximian.com  2003-02-23 08:29 -------
+using System;
+
+public class Testing
+{
+	public static int Method(int x)
+	{
+		for ( ;; )
+		{
+			if ( x != 1 )
+				x--;
+			else
+			 	break;
+			return 5;
+		}
+		return 0;
+	}
+
+
+	public static void Main()
+	{
+		Console.WriteLine( Method(1) );
+	}
+}
+
+
+