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 [EMAIL PROTECTED] 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: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +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 _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
