[Mono-bugs] [Bug 74887][Wis] Changed - Compilation fails with bogus CS0177 error if earlier CS0162 warning was given

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 9 May 2005 17:43: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 peter@novonyx.com.

http://bugzilla.ximian.com/show_bug.cgi?id=74887

--- shadow/74887	2005-05-09 17:42:14.000000000 -0400
+++ shadow/74887.tmp.8720	2005-05-09 17:43:15.000000000 -0400
@@ -2,13 +2,13 @@
 Product: Mono: Compilers
 Version: 1.1
 OS: All
 OS Details: 
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Wishlist
 Component: C#
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: peter@novonyx.com               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
@@ -21,6 +21,25 @@
 but not reachable due to a 'throw xxxException' line earlier in the code.
 
 ------- Additional Comments From peter@novonyx.com  2005-05-09 17:42 -------
 Created an attachment (id=15107)
 Sample code showing the bug
 
+
+------- Additional Comments From peter@novonyx.com  2005-05-09 17:43 -------
+Results when compiling with mcs:
+mcs -debug bug.cs 
+bug.cs(9) warning CS0162: Unreachable code detected
+bug.cs(12) error CS0177: The out parameter `arg1' must be assigned 
+before control leaves the current method.
+bug.cs(12) error CS0177: The out parameter `arg2' must be assigned 
+before control leaves the current method.
+Compilation failed: 2 error(s), 1 warnings
+make: *** [bug.exe] Error 1
+
+Results when compiling with csc:
+[s:\swftest]csc bug.cs
+Microsoft (R) Visual C# .NET Compiler version 7.10.6001.4
+for Microsoft (R) .NET Framework version 1.1.4322
+Copyright (C) Microsoft Corporation 2001-2002. All rights reserved.
+
+bug.cs(9,4): warning CS0162: Unreachable code detected