[Mono-bugs] [Bug 63842][Min] New - mcs sometimes generates incorrect IL-code using declarations after goto
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Tue, 24 Aug 2004 12:11:55 -0400 (EDT)
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 priewasser@gmx.at.
http://bugzilla.ximian.com/show_bug.cgi?id=63842
--- shadow/63842 2004-08-24 12:11:55.000000000 -0400
+++ shadow/63842.tmp.3345 2004-08-24 12:11:55.000000000 -0400
@@ -0,0 +1,40 @@
+Bug#: 63842
+Product: Mono: Compilers
+Version: unspecified
+OS: All
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Minor
+Component: C#
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: priewasser@gmx.at
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: mcs sometimes generates incorrect IL-code using declarations after goto
+
+Description of Problem:
+The following simple program compiles using mcs but doesn't run, using csc
+this program works with .net and mono.
+
+Steps to reproduce the problem:
+Run this:
+
+public class Test{
+ public static void Main(){
+ goto end;
+ int a;
+ end:
+ System.Console.WriteLine("end");
+ }
+}
+
+Actual Results:
+** ERROR **: Invalid IL code at IL0000 in C:Main (): IL_0000: br
+IL_ffffffff
+
+Expected Results:
+end