Issue 14986 - [REG2.068.1-b2] Assertion failed: (id->dyncast() == DYNCAST_DSYMBOL)
Summary: [REG2.068.1-b2] Assertion failed: (id->dyncast() == DYNCAST_DSYMBOL)
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P1 regression
Assignee: No Owner
URL:
Keywords: ice, pull
Depends on:
Blocks:
 
Reported: 2015-08-31 07:05 UTC by Jacob Carlborg
Modified: 2015-09-02 04:10 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Jacob Carlborg 2015-08-31 07:05:38 UTC
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 Kenji Hara 2015-08-31 11:10:47 UTC
Please post the reduced test case in bugzilla.
Comment 2 Jacob Carlborg 2015-08-31 12:01:15 UTC
This is what Dustmite reduced it to:

fromVararg()
{
    new [types[i].tsize];
}
Comment 3 Jacob Carlborg 2015-08-31 12:05:57 UTC
And here's a test case with valid code:

struct Foo
{
    int tsize;
}

void main()
{
    Foo[] types;
    new void[types[0].tsize];
}
Comment 4 Kenji Hara 2015-08-31 13:26:30 UTC
(In reply to Jacob Carlborg from comment #2)
(In reply to Jacob Carlborg from comment #3)

Thanks. I'll start working on this.
Comment 6 github-bugzilla 2015-09-01 01:12:08 UTC
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)
Comment 7 Jacob Carlborg 2015-09-01 06:19:30 UTC
Thanks for the quick fix.
Comment 8 github-bugzilla 2015-09-02 04:10:23 UTC
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