[Mono-bugs] [Bug 42384][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:40 -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=42384

--- shadow/42384	Mon May  5 15:54:40 2003
+++ shadow/42384.tmp.13882	Mon May  5 15:54:40 2003
@@ -0,0 +1,48 @@
+Bug#: 42384
+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: