May 30, 2023
https://issues.dlang.org/show_bug.cgi?id=23945

          Issue ID: 23945
           Summary: ICE caused by std.sumtype
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: blocker
          Priority: P1
         Component: dmd
          Assignee: nobody@puremagic.com
          Reporter: yusharora@protonmail.com

See dlang forum thread: https://forum.dlang.org/post/yiruzleiblljendduqmu@forum.dlang.org

Source: https://gist.github.com/run-dlang/5dd783c750f04329405af1b1e4a83cde

```d
Error: unknown, please file report on issues.dlang.org
/usr/include/dlang/dmd/std/meta.d(632,42): Error: template instance
`std.sumtype.matchImpl!(Flag.yes,
destroyIfOwner).matchImpl!(SumType!(ConstValueIndex, EnumConstValue,
ClassInfoIndex, AnnotationValue, ArrayValue)).matchImpl.valueTypes!4LU.fun!0LU`
error instantiating
/usr/include/dlang/dmd/std/sumtype.d(1931,32):        instantiated from here:
`Map!(getType, 0LU)`
/usr/include/dlang/dmd/std/sumtype.d(1967,51):        instantiated from here:
`valueTypes!4LU`
/usr/include/dlang/dmd/std/sumtype.d(1649,52):        instantiated from here:
`matchImpl!(SumType!(ConstValueIndex, EnumConstValue, ClassInfoIndex,
AnnotationValue, ArrayValue))`
/usr/include/dlang/dmd/std/sumtype.d(752,17):        instantiated from here:
`match!(SumType!(ConstValueIndex, EnumConstValue, ClassInfoIndex,
AnnotationValue, ArrayValue))`
source/parser/definitions/attributes.d(262,22):        instantiated from here:
`SumType!(ConstValueIndex, EnumConstValue, ClassInfoIndex, AnnotationValue,
ArrayValue)`
/usr/include/dlang/dmd/std/sumtype.d(1985,13):        while evaluating: `static
assert((__error)(hid))`
Error /usr/bin/dmd failed with exit code 1.
```

--