[Mono-bugs] [Bug 76148][Nor] New - Incorrect error: unreachable
code reached.
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Mon Sep 19 13:20:14 EDT 2005
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 miguel at ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=76148
--- shadow/76148 2005-09-19 13:20:14.000000000 -0400
+++ shadow/76148.tmp.7727 2005-09-19 13:20:14.000000000 -0400
@@ -0,0 +1,44 @@
+Bug#: 76148
+Product: Mono: Compilers
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: C#
+AssignedTo: rharinath at novell.com
+ReportedBy: miguel at ximian.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Incorrect error: unreachable code reached.
+
+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.
More information about the mono-bugs
mailing list