[Issue 16035] New: Compiler error when compiling specific union
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Tue May 17 08:08:13 PDT 2016
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: nobody at puremagic.com
Reporter: marcioapm at gmail.com
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_;
}
--
More information about the Digitalmars-d-bugs
mailing list