December 31, 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@puremagic.com
          Reporter: snarwin+bugzilla@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
---

--