[Mono-bugs] [Bug 74894][Nor] New - Flow analysis bug
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Tue, 10 May 2005 03:55:49 -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 marek.safar@seznam.cz.
http://bugzilla.ximian.com/show_bug.cgi?id=74894
--- shadow/74894 2005-05-10 03:55:49.000000000 -0400
+++ shadow/74894.tmp.12631 2005-05-10 03:55:49.000000000 -0400
@@ -0,0 +1,60 @@
+Bug#: 74894
+Product: Mono: Compilers
+Version: 1.1
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: IL assembler
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: marek.safar@seznam.cz
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Flow analysis bug
+
+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.
+class C {
+ class Token {
+ public Token next;
+ }
+
+ Token token;
+
+ public void Jj_consume_token()
+ {
+ Token oldToken;
+ if ((oldToken = token).next != null)
+ return;
+
+ token = oldToken;
+ return;
+ }
+
+ public static void Main () {}
+}
+
+2. compile
+
+
+Actual Results:
+
+test.cs(14) error CS0165: Use of unassigned local variable `oldToken'
+
+Expected Results:
+
+No error
+
+How often does this happen?
+
+
+Additional Information: