[Mono-bugs] [Bug 77161][Wis] New - mcs flow analysis bug with CS0162
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Wed Jan 4 21:30:15 EST 2006
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=77161
--- shadow/77161 2006-01-04 21:30:15.000000000 -0500
+++ shadow/77161.tmp.18726 2006-01-04 21:30:15.000000000 -0500
@@ -0,0 +1,38 @@
+Bug#: 77161
+Product: Mono: Compilers
+Version: 1.1
+OS: All
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: C#
+AssignedTo: rharinath at novell.com
+ReportedBy: grompf at sublimeintervention.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: mcs flow analysis bug with CS0162
+
+Test case:
+
+public class test {
+ public int Foo (int a) {
+ if (a > 1) {
+ goto Foo;
+ }
+ return 0;
+
+ Foo:
+ return 1;
+ }
+
+ static void Main() {}
+}
+
+causes
+
+mornithopter:~ plasma$ mcs t.cs
+t.cs(8,10): warning CS0162: Unreachable code detected
More information about the mono-bugs
mailing list