May 08, 2023 [Issue 23905] New: Initialization of SumType with opaque enum causes ICE | ||||
---|---|---|---|---|
| ||||
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@puremagic.com Reporter: snarwin+bugzilla@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 --- -- |
Copyright © 1999-2021 by the D Language Foundation