[Mono-bugs] [Bug 45797][Nor] New - Invalid report of error CS0165: Use of unassigned local variable
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
Thu, 3 Jul 2003 12:54:34 -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 sebastian.nowozin@web.de.
http://bugzilla.ximian.com/show_bug.cgi?id=45797
--- shadow/45797 Thu Jul 3 12:54:34 2003
+++ shadow/45797.tmp.10032 Thu Jul 3 12:54:34 2003
@@ -0,0 +1,40 @@
+Bug#: 45797
+Product: Mono/MCS
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: sebastian.nowozin@web.de
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Invalid report of error CS0165: Use of unassigned local variable
+
+Description of Problem:
+
+From mono-cvs 20030701 to 20030703 this problem appeared (before it was
+alright): If a local variable is left unassigned and assigned in a b1 block in:
+try { b1; } catch (Exception ex) { b2; } b3;
+Then a use of the local variable in b3 produces an error with mcs:
+
+test1.cs(15) error CS0165: Use of unassigned local variable `response'
+
+Steps to reproduce the problem:
+1. mcs test1.cs
+
+Actual Results:
+test1.cs(15) error CS0165: Use of unassigned local variable `response'
+
+Expected Results:
+Compiled successfully.
+
+How often does this happen?
+Always reproducable.
+
+Additional Information: