[Mono-bugs] [Bug 24985] New - Bugs with switch.

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
20 May 2002 14:50:00 -0000


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=24985

--- shadow/24985	Mon May 20 10:50:00 2002
+++ shadow/24985.tmp.8897	Mon May 20 10:50:00 2002
@@ -0,0 +1,29 @@
+Bug#: 24985
+Product: Mono/MCS
+Version: unspecified
+OS: other
+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: Bugs with switch.
+
+We miss-compile switch: if every branch returns and we are the last statement 
+we do generate a branch into code that is not reachable:
+
+void B ()
+{
+    switch (x){
+    case 1: return;
+    }
+}
+
+To find it, run peverify on the resulting executable.