GNOME Bugzilla – Bug 645771
Incorrect detection of unassign variables in do while loop
Last modified: 2011-04-30 10:58:59 UTC
public int f() { int i; do { i = 0; } while (i != 0); return i; } % valac test.vala test.vala:5.11-5.16: error: use of possibly unassigned local variable `i' } while (i != 0); ^^^^^^ Compilation failed: 1 error(s), 0 warning(s) Trivially in 5th line local variable is always assigned.
I can confirm this still allies to current Git master. Any plan to fix this one?
*** This bug has been marked as a duplicate of bug 574352 ***