Works with v2.060. Fails since.
---
cat > test.d << code
enum e = 0;
class C {int x = e;}
string f()
{
auto c = new C();
return "";
}
mixin(f());
code
dmd -c -o- test.d
---
Segmentation fault (core dumped)
---
Comment #1 by nilsbossung — 2013-08-08T12:34:04Z
Happens with other non-literal initializers, too:
class C {int x = int.max;}
class C {int x = 0 + 0;}