https://issues.dlang.org/show_bug.cgi?id=23905
Issue ID: 23905
Summary: Initialization of SumType with opaque enum causes ICE
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: dmd
Assignee: [email protected]
Reporter: [email protected]
As of DMD 2.103.1, the following program fails to compile:
---
import std.sumtype : SumType;
enum Foo;
void main(){
SumType!Foo data = Foo.init; // int.init;
}
---
The error message is:
---
Error: unknown, please file report on issues.dlang.org
---
--