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.
Please post the reduced test case in bugzilla.
This is what Dustmite reduced it to: fromVararg() { new [types[i].tsize]; }
And here's a test case with valid code: struct Foo { int tsize; } void main() { Foo[] types; new void[types[0].tsize]; }
(In reply to Jacob Carlborg from comment #2) (In reply to Jacob Carlborg from comment #3) Thanks. I'll start working on this.
https://github.com/D-Programming-Language/dmd/pull/5004
Commits pushed to stable at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/0f50f12dfda9064723ed1d78fe0e724687fff150 fix Issue 14986 - Assertion failed: (id->dyncast() == DYNCAST_DSYMBOL) https://github.com/D-Programming-Language/dmd/commit/fa02c617d58e9dc73afbef83f41ae041287e3ba9 Merge pull request #5004 from 9rnsr/fix14986 [REG2.068.1-b2] Issue 14986 - Assertion failed: (id->dyncast() == DYNCAST_DSYMBOL)
Thanks for the quick fix.
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/0f50f12dfda9064723ed1d78fe0e724687fff150 fix Issue 14986 - Assertion failed: (id->dyncast() == DYNCAST_DSYMBOL) https://github.com/D-Programming-Language/dmd/commit/fa02c617d58e9dc73afbef83f41ae041287e3ba9 Merge pull request #5004 from 9rnsr/fix14986