[Issue 24311] New: Named enum with AA base type causes ICE
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Dec 31 14:36:54 UTC 2023
https://issues.dlang.org/show_bug.cgi?id=24311
Issue ID: 24311
Summary: Named enum with AA base type causes ICE
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: snarwin+bugzilla at gmail.com
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
---
--
More information about the Digitalmars-d-bugs
mailing list