[Mono-bugs] [Bug 46640][Wis] Changed - Running this program causes 'invalid IL error'

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 20 Jan 2004 16:03:25 -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=46640

--- shadow/46640	2003-07-21 23:27:57.000000000 -0400
+++ shadow/46640.tmp.24846	2004-01-20 16:03:25.000000000 -0500
@@ -1,17 +1,17 @@
 Bug#: 46640
-Product: Mono/MCS
+Product: Mono/Compilers
 Version: unspecified
 OS: unknown
 OS Details: 
-Status: REOPENED   
-Resolution: 
+Status: RESOLVED   
+Resolution: FIXED
 Severity: Unknown
 Priority: Wishlist
-Component: Misc
-AssignedTo: mono-bugs@ximian.com                            
+Component: C#
+AssignedTo: martin@ximian.com                            
 ReportedBy: duncan@ximian.com               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
 URL: 
 Cc: 
 Summary: Running this program causes 'invalid IL error'
@@ -120,6 +120,29 @@
 
 ------- Additional Comments From duncan@ximian.com  2003-07-21 23:27 -------
 [23:29] <jackson> duncan: mmm looks like an mcs bug
 [23:29] <BenM> duncan: it looks like an mcs bug then
 
 Yeah, a compiler bug it is.
+
+------- Additional Comments From bmaurer@users.sf.net  2003-12-24 23:18 -------
+I am assigning this to Martin, it looks like a flow bug. The code is
+trying to break out of the method.
+
+------- Additional Comments From martin@ximian.com  2004-01-20 16:03 -------
+A good testcase is this: 
+class X 
+{ 
+        static void Test (int a, bool test) 
+        { 
+                switch (a) { 
+                case 3: 
+                        if (test) 
+                                break; 
+                        return; 
+                default: 
+                        return; 
+                } 
+        } 
+} 
+ 
+Bug is FIXED in CVS; testcase is in test-154.cs