digitalmars.D.bugs - [Issue 20090] New: Header generation wrongfully outputs constructor
- d-bugmail puremagic.com (41/41) Jul 29 2019 https://issues.dlang.org/show_bug.cgi?id=20090
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 puremagic.com Reporter: razvan.nitu1305 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 --
Jul 29 2019