Don't need all that file:
int[] test()
{
int[] x;
int[3] y;
x = y = [1, 2, 3];
return x;
}
Is enough to reproduce (I believe it is the x = y = [1,2,3] line).
Comment #2 by bugzilla — 2013-11-11T20:14:22Z
With dmd head, I am unable to reproduce the assert failure. But it does still assert at runtime with the first example.
Comment #3 by bugzilla — 2013-11-11T21:20:07Z
(In reply to comment #2)
> But it does still
> assert at runtime with the first example.
And it should fail, as it is returning a pointer to a local.
So, I'm going to close this as "worksforme" because the assert no longer trips.