[Issue 6962] Wrong Code With Scope Exit + By-Ref Parameters, only with -O
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Nov 15 05:30:03 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=6962
--- Comment #1 from Don <clugdbug at yahoo.com.au> 2012-11-15 05:29:59 PST ---
Marginally reduced test case:
int bug6962(string value)
{
string v = value;
scope(exit)
assert(!v.length);
ref6962(v);
return 1;
}
void ref6962(ref string value)
{
value = value[0..0];
}
void main()
{
string s = "42";
bug6962(s);
}
--
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