Bugzilla – Bug 319029
[flowbranching] Incorrect error: unreachable code reached.
Last modified: 2007-09-15 21:24:23 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".