[Issue 813] New: regression: optimizer & scope
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Jan 7 08:15:58 PST 2007
http://d.puremagic.com/issues/show_bug.cgi?id=813
Summary: regression: optimizer & scope
Product: D
Version: 1.00
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P3
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: thomas-dloop at kuehne.cn
http://dstress.kuehne.cn/run/s/scope_16_A.d
# void main(){
# scope x = 1.2;
# static assert(is(typeof(x) == double));
#
# x++;
# if(x != 2.2){
# assert(0);
# }
# }
fails only if compiled with "-O"
--
More information about the Digitalmars-d-bugs
mailing list