Bug 319029 (MONO76148) - [flowbranching] Incorrect error: unreachable code reached.
Summary: [flowbranching] Incorrect error: unreachable code reached.
Status: RESOLVED FIXED
Alias: MONO76148
Product: Mono: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Raja R Harinath
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-19 20:20 UTC by Miguel de Icaza
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:31:11 UTC


---- Reported by miguel@ximian.com 2005-09-19 13:20:13 MST ----

The following program produces an incorrect warning:

 using System;
class  X {

private void HandleConflict (int a) {

        if (a != 1) {
            goto throwException;
        }

        if (a != 2) {
            goto throwException;
        }

        return;

    throwException:
        throw new Exception ();
    }

        static void Main () {}
}

It has two issues: it reports the error in line 4 (so it seems like it does
not really know where the error happens) and the warning is incorrect.



---- Additional Comments From marek.safar@seznam.cz 2005-09-21 03:30:53 MST ----

The error location is fixed.



---- Additional Comments From martin@ximian.com 2006-03-21 18:50:52 MST ----



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



---- Additional Comments From rharinath@novell.com 2006-05-18 05:46:07 MST ----

unpeeling



---- Additional Comments From rharinath@novell.com 2006-05-18 07:30:32 MST ----

Should be fixed in SVN r60813.

This bug blocked bug(s) 77869.

Unknown operating system unknown. Setting to default OS "Other".