When I compile Tango use DMD 2.068.1-b2 I get this error (dmd -c tango/core/Variant.d) :
Assertion failed: (id->dyncast() == DYNCAST_DSYMBOL), function toExpression, file mtype.c, line 6894.
It looks similar to issue 14889 but this assertion is at a different location.
Comment #1 by k.hara.pg — 2015-08-31T11:10:47Z
Please post the reduced test case in bugzilla.
Comment #2 by doob — 2015-08-31T12:01:15Z
This is what Dustmite reduced it to:
fromVararg()
{
new [types[i].tsize];
}
Comment #3 by doob — 2015-08-31T12:05:57Z
And here's a test case with valid code:
struct Foo
{
int tsize;
}
void main()
{
Foo[] types;
new void[types[0].tsize];
}
Comment #4 by k.hara.pg — 2015-08-31T13:26:30Z
(In reply to Jacob Carlborg from comment #2)
(In reply to Jacob Carlborg from comment #3)
Thanks. I'll start working on this.