Bug 20090 – Header generation wrongfully outputs constructor bodies

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2019-07-29T08:17:53Z
Last change time
2023-05-01T19:33:39Z
Keywords
pull
Assigned to
No Owner
Creator
RazvanN

Comments

Comment #0 by razvan.nitu1305 — 2019-07-29T08:17:53Z
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
Comment #1 by razvan.nitu1305 — 2019-09-09T11:45:05Z
*** Issue 20194 has been marked as a duplicate of this issue. ***
Comment #2 by razvan.nitu1305 — 2023-04-18T11:24:20Z
Regression introduced by: https://github.com/dlang/dmd/pull/6423
Comment #3 by dlang-bot — 2023-04-18T11:36:22Z
@RazvanN7 created dlang/dmd pull request #15115 "Fix Issue 20090 - Header generation wrongfully outputs constructor bodies" fixing this issue: - Fix Issue 20090 - Header generation wrongfully outputs constructor bodies https://github.com/dlang/dmd/pull/15115
Comment #4 by dlang-bot — 2023-04-19T10:26:19Z
dlang/dmd pull request #15115 "Fix Issue 20090 - Header generation wrongfully outputs constructor bodies" was merged into stable: - 199250bc32e1baa0c546612b722dc07d1d873e09 by RazvanN7: Fix Issue 20090 - Header generation wrongfully outputs constructor bodies https://github.com/dlang/dmd/pull/15115
Comment #5 by dlang-bot — 2023-05-01T19:33:39Z
dlang/dmd pull request #15156 "merge stable" was merged into master: - 4531b0c6ca7c9218b8d22ae309e44273da880fc4 by Razvan Nitu: Fix Issue 20090 - Header generation wrongfully outputs constructor bodies (#15115) https://github.com/dlang/dmd/pull/15156