[Issue 13275] New: Wrong di header generation on if and foreach statements
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sat Aug 9 23:44:13 PDT 2014
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 at puremagic.com
Reporter: k.hara.pg at 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])
{
}
}
--
More information about the Digitalmars-d-bugs
mailing list