[Mono-bugs] [Bug 58488][Wis] New - Poor CS0162 diagnostic
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Fri, 14 May 2004 04:52:38 -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 michi@zeroc.com.
http://bugzilla.ximian.com/show_bug.cgi?id=58488
--- shadow/58488 2004-05-14 04:52:38.000000000 -0400
+++ shadow/58488.tmp.3325 2004-05-14 04:52:38.000000000 -0400
@@ -0,0 +1,38 @@
+Bug#: 58488
+Product: Mono: Compilers
+Version: unspecified
+OS: All
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: C#
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: michi@zeroc.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Poor CS0162 diagnostic
+
+I'm compiling a DLL with mcs that contains around 100 source files, some
+of them quite large. The code compiles OK and the DLL works fine. At the
+end of the compilation, I get a CS0162 warning about unreachable code.
+
+Two potential problems here:
+
+1) I don't get a source file or a line number, which makes it very
+difficult to work out which bit of code is considered unreachable.
+
+2) The same code compiles without warnings with MS Visual C#.
+
+Is there any way to improve the diagnostic to output a file and line
+number?
+
+If you are interested, I can send you the entire source code so you can
+reproduce the problem.
+
+Thanks,
+
+Michi.