Bug 317942 (MONO74894) - Flow analysis bug
Summary: Flow analysis bug
Status: RESOLVED MOVED
Alias: MONO74894
Product: Mono: Compilers
Classification: Mono
Component: IL assembler (show other bugs)
Version: 1.1
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Mono Bugs
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-10 10:55 UTC by Marek Safar
Modified: 2007-09-15 21:24 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 19:16:28 UTC


---- Reported by marek.safar@seznam.cz 2005-05-10 03:55:49 MST ----

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:



---- Additional Comments From bmaurer@users.sf.net 2005-05-19 21:19:33 MST ----



*** This bug has been marked as a duplicate of https://bugzilla.novell.com/show_bug.cgi?id=MONO57747 ***


Unknown operating system unknown. Setting to default OS "Other".
This bug was marked DUPLICATE in the database it was moved from.
    Changing resolution to "MOVED"