Bug 24026 – ImportC: ICE on nested C initializer 2

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2023-07-02T21:57:45Z
Last change time
2023-07-15T15:30:07Z
Keywords
pull
Assigned to
No Owner
Creator
Dennis
See also
https://issues.dlang.org/show_bug.cgi?id=23786, https://issues.dlang.org/show_bug.cgi?id=24031

Comments

Comment #0 by dkorpel — 2023-07-02T21:57:45Z
Introduced by the fix for issue 23768, https://github.com/dlang/dmd/pull/15344 ```C typedef struct { int type; } Action; typedef struct { Action action; } Entry; Entry entry = {{ .type = 1 }}; ``` This makes the compiler get stuck in an endless loop
Comment #1 by dlang-bot — 2023-07-03T08:13:40Z
@WalterBright created dlang/dmd pull request #15375 "fix Issue 24026 - ImportC: ICE on nested C initializer 2" fixing this issue: - fix Issue 24026 - ImportC: ICE on nested C initializer 2 https://github.com/dlang/dmd/pull/15375
Comment #2 by dlang-bot — 2023-07-05T19:19:17Z
dlang/dmd pull request #15375 "fix Issue 24026 - ImportC: ICE on nested C initializer 2" was merged into stable: - 9713e3482e23a3948cb675c70e5e1577a09010c4 by Walter Bright: fix Issue 24026 - ImportC: ICE on nested C initializer 2 https://github.com/dlang/dmd/pull/15375
Comment #3 by dlang-bot — 2023-07-15T15:30:07Z
dlang/dmd pull request #15417 "merge stable" was merged into master: - 78dc82bca27d572065e59c227c22c639d5157f34 by Walter Bright: fix Issue 24026 - ImportC: ICE on nested C initializer 2 (#15375) https://github.com/dlang/dmd/pull/15417