[Issue 6962] Wrong Code With Scope Exit + By-Ref Parameters, only with -O

2012-11-15 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6962 --- Comment #1 from Don 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) {

[Issue 6962] Wrong Code With Scope Exit + By-Ref Parameters, only with -O

2012-11-09 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=6962 Don changed: What|Removed |Added Summary|Wrong Code With Scope Exit |Wrong Code With Scope Exit |+ B