struct A { long a; enum A b = {0}; // Error: variable test.A.test2 enum cannot be initialized with {0} } void test(A a = A.b) // Triggers it { } void main() {} Works in 2.058 but not the 2.059 git version.
I confirm this regression on Linux 64-bit
Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/b548a3d7a9c8e8999fd94e22d24c6d7a185101e4 fix Issue 7823 - Can't use a struct initializer to initialize a nested enum used as a default function argument initializer