Bug 319962 (MONO77161) - mcs flow analysis bug with CS0162
Summary: mcs flow analysis bug with CS0162
Status: RESOLVED MOVED
Alias: MONO77161
Product: Mono: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: 1.1
Hardware: Other All
: P3 - Medium : Enhancement
Target Milestone: ---
Assignee: Raja R Harinath
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-05 04:30 UTC by Geoff Norton
Modified: 2007-09-15 21:24 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 19:43:32 UTC


---- Reported by grompf@sublimeintervention.com 2006-01-04 21:30:14 MST ----

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



---- Additional Comments From grompf@sublimeintervention.com 2006-01-06 19:09:09 MST ----



*** This bug has been marked as a duplicate of https://bugzilla.novell.com/show_bug.cgi?id=MONO75317 ***


This bug was marked DUPLICATE in the database it was moved from.
    Changing resolution to "MOVED"