[Issue 5790] "Error: variable result used before set" when -release -inline -O
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Jan 11 14:14:36 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=5790
Jonas Drewsen <jdrewsen at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jdrewsen at gmail.com
--- Comment #8 from Jonas Drewsen <jdrewsen at gmail.com> 2012-01-11 14:14:30 PST ---
Additional test case using only the -O flag and no -inline or -release flags
necessary.
import std.typecons;
void main(string[] args) {
// Errors
auto i = Tuple!(string,string)("foo", "bar")[1];
// Ok
auto j = Tuple!(string,string)("foo", "bar");
auto k = j[1];
}
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list