[Mono-bugs] [Bug 74979][Maj] Changed - Problem with switch and break

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue May 17 13:53:49 EDT 2005


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 bmaurer at users.sf.net.

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

--- shadow/74979	2005-05-17 13:47:50.000000000 -0400
+++ shadow/74979.tmp.18491	2005-05-17 13:53:49.000000000 -0400
@@ -1,14 +1,14 @@
 Bug#: 74979
 Product: Mono: Compilers
 Version: 1.0
-OS: 
+OS: unknown
 OS Details: 
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Major
 Component: C#
 AssignedTo: mono-bugs at ximian.com                            
 ReportedBy: bmaurer at users.sf.net               
 QAContact: mono-bugs at ximian.com
 TargetMilestone: ---
@@ -35,6 +35,28 @@
 		
 		Console.WriteLine ("Good");
 	}
 }
 
 mcs compiled binary outputs nothing. It should output good.
+
+------- Additional Comments From bmaurer at users.sf.net  2005-05-17 13:53 -------
+This looks like it is for Martin. the compiler thinks the CWL is
+unreachable, and it is not emitted:
+
+        IL_0000:  ldsfld  char X::c
+        IL_0005:  stloc.0
+        IL_0006:  ldloc.0
+        IL_0007:  ldc.i4.s 0x65
+        IL_0009:  beq IL_0013
+ 
+        IL_000e:  br IL_0023
+ 
+        IL_0013:  ldsfld  bool X::A
+        IL_0018:  brfalse IL_0022
+ 
+        IL_001d:  br IL_0024
+ 
+        IL_0022:  ret
+        IL_0023:  ret
+        IL_0024:  ret
+


More information about the mono-bugs mailing list