https://issues.dlang.org/show_bug.cgi?id=19666
--- Comment #2 from Basile-z <b2.t...@gmx.com> --- reduced: --- struct StoreAny { ubyte[16] store; this(T)(T value) { *(cast(T*) store) = value; } } struct SomeStruct {} enum StoreAny someEnum = StoreAny(SomeStruct()); void main() { } --- but code is invalid anyway. I suspect that the intention was more *(cast(T*) &store) = value; which CTFE cant do anyway. --