[Mono-bugs] [Bug 75279][Wis] New - mcs outputs unreachable il

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Jun 15 16:06:02 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 grompf at sublimeintervention.com.

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

--- shadow/75279	2005-06-15 16:06:02.000000000 -0400
+++ shadow/75279.tmp.19918	2005-06-15 16:06:02.000000000 -0400
@@ -0,0 +1,44 @@
+Bug#: 75279
+Product: Mono: Compilers
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: C#
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: grompf at sublimeintervention.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: mcs outputs unreachable il
+
+The following code:
+class T { static int Main (string [] args) {
+        try { return 1; } finally { System.Console.WriteLine ("Hi!"); }
+} }
+
+outputs:
+.try { // 0
+          IL_0000:  ldc.i4.1 
+          IL_0001:  stloc.0 
+          IL_0002:  leave IL_0017
+
+          IL_0007:  leave IL_0017
+
+        } // end .try 0
+        finally  { // 0
+          IL_000c:  ldstr "Hi!"
+          IL_0011:  call void class [mscorlib]System.Console::WriteLine(string)
+          IL_0016:  endfinally 
+        } // end handler 0
+        IL_0017:  ldloc.0 
+        IL_0018:  ret 
+
+
+The IL_0007 mark is redundant due to the leave at IL_0002.
+
+-kangaroo


More information about the mono-bugs mailing list