https://issues.dlang.org/show_bug.cgi?id=18260
--- Comment #2 from Andrei Alexandrescu <[email protected]> --- A better workaround: struct R { int[] arr; alias get this; This get(this This)() { return This.init; } } unittest { const(R) b = const(R).init; } I suspect the problem is an infinite recursion during semantic checking. --
