https://issues.dlang.org/show_bug.cgi?id=16035
Issue ID: 16035
Summary: Compiler error when compiling specific union
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: critical
Priority: P1
Component: dmd
Assignee: [email protected]
Reporter: [email protected]
import std.conv;
struct Value {
auto toString() inout {
get!string;
}
T get(T)() {
storage_.a[0].to!T;
}
union Storage {
const(Value)* a;
}
Storage storage_;
}
--
