[Mono-bugs] [Bug 75935][Nor] New - mcs emits a branch from a try
block
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Tue Aug 30 07:08: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 jankit at novell.com.
http://bugzilla.ximian.com/show_bug.cgi?id=75935
--- shadow/75935 2005-08-30 07:08:02.000000000 -0400
+++ shadow/75935.tmp.24922 2005-08-30 07:08:02.000000000 -0400
@@ -0,0 +1,53 @@
+Bug#: 75935
+Product: Mono: Compilers
+Version: 1.1
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: C#
+AssignedTo: mono-bugs at ximian.com
+ReportedBy: jankit at novell.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: mcs emits a branch from a try block
+
+Test case:
+
+using System;
+
+class test
+{
+ public static void Main (string [] args)
+ {
+ try {
+ goto abc;
+ }catch {
+ }
+
+ abc:
+ Console.WriteLine ("At abc..");
+ }
+}
+
+mcs, then monodis:
+<snip>
+ .maxstack 2
+ .try { // 0
+ IL_0000: br IL_0010 --> branch !!
+
+ IL_0005: leave IL_0010
+
+ } // end .try 0
+ catch [mscorlib]System.Object { // 0
+ IL_000a: pop
+ IL_000b: leave IL_0010
+
+ } // end handler 0
+ IL_0010: ldstr "At abc.."
+
+<snip>
More information about the mono-bugs
mailing list