[Mono-bugs] [Bug 53058][Maj] New - Invalid IL code on loop + switch

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 19 Jan 2004 13:50:34 -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-19 13:50:34.000000000 -0500
+++ shadow/53058.tmp.8054	2004-01-19 13:50:34.000000000 -0500
@@ -0,0 +1,39 @@
+Bug#: 53058
+Product: Mono/Compilers
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: lluis@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Invalid IL code on loop + switch
+
+The following test application throws an Invalid IL error when runing on mono:
+
+class Test
+{
+        public static void Main ()
+        {
+                while (true)
+                {
+                        if (true) break;
+ 
+                        switch (0) {
+                                case 0: break;
+                        }
+                }
+        }
+}
+
+I get the following error:
+
+** ERROR **: Invalid IL code at IL0000 in .Test:Main (): IL_0000: br      
+ IL_001d