digitalmars.D.bugs - [Issue 13275] New: Wrong di header generation on if and foreach
- via Digitalmars-d-bugs (37/37) Aug 09 2014 https://issues.dlang.org/show_bug.cgi?id=13275
https://issues.dlang.org/show_bug.cgi?id=13275 Issue ID: 13275 Summary: Wrong di header generation on if and foreach statements Product: D Version: D2 Hardware: All OS: All Status: NEW Keywords: wrong-code Severity: normal Priority: P1 Component: DMD Assignee: nobody puremagic.com Reporter: k.hara.pg gmail.com Qualified parameters in IfStatement and ForeachStatement generates wrong di header. // test.d void main() { if (const n = 1) {} foreach (const x; [1,2,3]) {} } Command line: $ dmd -H -inline -o- test.d Result: // D import file generated from 'test.d' void main() { if (auto n = 1) { } foreach (x; [1, 2, 3]) { } } --
Aug 09 2014