[Mono-bugs] [Bug 76632][Nor] Changed - exception/finally problem.

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Nov 4 14:53:05 EST 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=76632

--- shadow/76632	2005-11-04 14:31:16.000000000 -0500
+++ shadow/76632.tmp.3421	2005-11-04 14:53:05.000000000 -0500
@@ -1,14 +1,14 @@
 Bug#: 76632
 Product: Mono: Compilers
 Version: 1.1
-OS: 
+OS: unknown
 OS Details: 
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Normal
 Component: C#
 AssignedTo: rharinath at novell.com                            
 ReportedBy: toshok at ximian.com               
 QAContact: mono-bugs at ximian.com
 TargetMilestone: ---
@@ -40,6 +40,25 @@
 
 toshok at linux:~> mcs foo.cs
 warning CS0162: Unreachable code detected
 foo.cs(10,9): warning CS0162: Unreachable code detected
 foo.cs(13,38): error CS0165: Use of unassigned local variable `hi'
 Compilation failed: 1 error(s), 2 warnings
+
+------- Additional Comments From miguel at ximian.com  2005-11-04 14:53 -------
+The following sample is correct C#, but fails to compile:
+
+using System;
+
+public class Foo {
+  public static void Main (string[] args)
+  {
+    throw new Exception ();
+    string hi = "";
+    try { }
+    finally {
+      Console.WriteLine ("hi = {0}", hi);
+    }
+  }
+}
+
+


More information about the mono-bugs mailing list