Bug 24311 – Named enum with AA base type causes ICE

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2023-12-31T14:36:54Z
Last change time
2024-01-05T13:47:12Z
Keywords
pull
Assigned to
No Owner
Creator
Paul Backus

Comments

Comment #0 by snarwin+bugzilla — 2023-12-31T14:36:54Z
As of DMD 2.106.0, the following program fails to compile: --- enum E : int[int] { x = [123: 456] } --- The error message is: --- bug.d(1): Error: internal compiler error: failed to detect static initialization of associative array ---
Comment #1 by dlang-bot — 2024-01-05T11:48:18Z
@dkorpel created dlang/dmd pull request #16002 "Fix 24311 - Named enum with AA base type causes ICE" fixing this issue: - Fix 24311 - Named enum with AA base type causes ICE https://github.com/dlang/dmd/pull/16002
Comment #2 by dlang-bot — 2024-01-05T13:47:12Z
dlang/dmd pull request #16002 "Fix 24311 - Named enum with AA base type causes ICE" was merged into stable: - 3302da028ad3955b9b8b0173c3dabdb0f296873a by Dennis Korpel: Fix 24311 - Named enum with AA base type causes ICE https://github.com/dlang/dmd/pull/16002