[Mono-bugs] [Bug 74895][Nor] New - Error in FlowAnalysis

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 10 May 2005 09:23:04 -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=74895

--- shadow/74895	2005-05-10 09:23:04.000000000 -0400
+++ shadow/74895.tmp.15261	2005-05-10 09:23:04.000000000 -0400
@@ -0,0 +1,60 @@
+Bug#: 74895
+Product: Mono: Compilers
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: marek.safar@seznam.cz               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Error in FlowAnalysis
+
+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: