struct HasUnion
{
union
{
int a, b;
}
}
void main()
{
auto x = new HasUnion();
}
This segfaults when trying to optimize `new HasUnion()`, which has been expanded to `new HasUnion(0, )` with the second argument being NULL in the ast.
Comment #1 by dlang-bugzilla — 2014-05-21T02:48:03Z