[Mono-bugs] [Bug 59426][Nor] New - Labels may not be reachable
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Tue, 1 Jun 2004 22:50:15 -0400 (EDT)
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 bmaurer@users.sf.net.
http://bugzilla.ximian.com/show_bug.cgi?id=59426
--- shadow/59426 2004-06-01 22:50:15.000000000 -0400
+++ shadow/59426.tmp.3093 2004-06-01 22:50:15.000000000 -0400
@@ -0,0 +1,36 @@
+Bug#: 59426
+Product: Mono: Compilers
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: C#
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: bmaurer@users.sf.net
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Labels may not be reachable
+
+Consider:
+class T {
+ static int Main ()
+ {
+ return 1;
+ fake: ;
+ }
+}
+
+We say:
+[benm@Ben benm]$ mcs t.cs
+t.cs(2) error CS0161: Not all code paths return a value
+Compilation failed: 1 error(s), 0 warnings
+
+CSC gives no error.
+
+`fake' is not reachable, so there is no need for it's code path to return a
+value.