https://issues.dlang.org/show_bug.cgi?id=16035
Steven Schveighoffer <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|ice |ice-on-invalid-code --- Comment #3 from Steven Schveighoffer <[email protected]> --- It has something to do with inout, not with unions. Reduced case: struct Value { auto toString() inout { get!string; } T get(T)() { a[0].toString(); } const(Value)* a; } Remove inout, and this fails to compile: testunion.d(7): Error: mutable method testunion.Value.toString is not callable using a const object testunion.d(3): Error: template instance testunion.Value.get!string error instantiating --
