[Issue 23905] New: Initialization of SumType with opaque enum causes ICE
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon May 8 13:26:43 UTC 2023
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: nobody at puremagic.com
Reporter: snarwin+bugzilla at gmail.com
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
---
--
More information about the Digitalmars-d-bugs
mailing list