[Mono-bugs] [Bug 49359][Nor] New - Invalid IL generated on while (true) constructs
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Sun, 5 Oct 2003 21:53:10 -0400 (EDT)
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 miguel@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=49359
--- shadow/49359 2003-10-05 21:53:10.000000000 -0400
+++ shadow/49359.tmp.24228 2003-10-05 21:53:10.000000000 -0400
@@ -0,0 +1,39 @@
+Bug#: 49359
+Product: Mono/MCS
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: miguel@ximian.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Invalid IL generated on while (true) constructs
+
+The following code generates invalid IL:
+
+using System;
+class t{
+ static void Main () {
+ while (true){
+ System.Threading.Thread.Sleep (1);
+ }
+
+ Console.WriteLine ("Hello");
+ }
+}
+
+mono$ mcs a.cs; mono a.exe
+Compilation succeeded
+
+** ERROR **: Invalid IL code at IL0015 in .t:Main (): IL_0015: nop
+
+
+aborting...
+Aborted