Bug 13275 – Wrong di header generation on if and foreach statements

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-08-10T06:44:00Z
Last change time
2014-08-17T08:33:28Z
Keywords
pull, wrong-code
Assigned to
nobody
Creator
k.hara.pg

Comments

Comment #0 by k.hara.pg — 2014-08-10T06:44:13Z
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]) { } }
Comment #1 by k.hara.pg — 2014-08-10T08:55:19Z
Comment #2 by github-bugzilla — 2014-08-17T08:33:27Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/03f13997aaf4de4195c9ee5a70e9840ba8ac2e47 fix Issue 13275 - Wrong di header generation on if and foreach statements https://github.com/D-Programming-Language/dmd/commit/226257f9c5af4ad76f56608460f9619d10c96125 Merge pull request #3861 from 9rnsr/fix13275 Issue 13275 - Wrong di header generation on if and foreach statements