[Mono-bugs] [Bug 42385][Wis] New - mcs reports use of assigned variable as unassigned

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Mon, 5 May 2003 15:54:41 -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 arch.robison@intel.com.

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

--- shadow/42385	Mon May  5 15:54:41 2003
+++ shadow/42385.tmp.13884	Mon May  5 15:54:41 2003
@@ -0,0 +1,48 @@
+Bug#: 42385
+Product: Mono/MCS
+Version: unspecified
+OS: Red Hat 7.2
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: arch.robison@intel.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: mcs reports use of assigned variable as unassigned
+
+Please fill in this template when reporting a bug, unless you know what 
+you are doing.
+Description of Problem:
+
+
+Steps to reproduce the problem:
+1. Save this test to a file ij.cs:
+public class Wrapper {
+    public static void Main() {
+        int j;
+        for( int i=0; i<10; i=j ) 
+            j = i+1;
+    }
+}
+2. Compile ij.cs with "mcs ij.cs"
+3. Notice incorrect error message:
+ij.cs(4) error CS0165: Use of unassigned local variable `j'
+    Compilation failed: 1 error(s), 0 warnings
+
+
+Actual Results:
+
+
+Expected Results:
+
+
+How often does this happen? 
+
+
+Additional Information: