[Issue 20090] New: Header generation wrongfully outputs constructor bodies
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Jul 29 08:17:53 UTC 2019
https://issues.dlang.org/show_bug.cgi?id=20090
Issue ID: 20090
Summary: Header generation wrongfully outputs constructor
bodies
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: enhancement
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: razvan.nitu1305 at gmail.com
struct C
{
this(int)
{
()
{
int a; int*p = &a;
}();
}
}
Compiling this code:
dmd -c -Hf=hdrgenbug.di test.d
yields:
struct C
{
this(int)
{
()
{
int a;
int* p = &a;
}
();
}
}
The constructor body should not be present
--
More information about the Digitalmars-d-bugs
mailing list