Thread overview
[Issue 14986] [REG2.068.1-b2] Assertion failed: (id->dyncast() == DYNCAST_DSYMBOL)
[Issue 14986] Assertion failed: (id->dyncast() == DYNCAST_DSYMBOL)
Aug 31, 2015
Kenji Hara
Aug 31, 2015
Jacob Carlborg
Aug 31, 2015
Jacob Carlborg
Aug 31, 2015
Kenji Hara
Aug 31, 2015
Kenji Hara
Sep 01, 2015
Jacob Carlborg
August 31, 2015
https://issues.dlang.org/show_bug.cgi?id=14986

--- Comment #1 from Kenji Hara <k.hara.pg@gmail.com> ---
Please post the reduced test case in bugzilla.

--
August 31, 2015
https://issues.dlang.org/show_bug.cgi?id=14986

--- Comment #2 from Jacob Carlborg <doob@me.com> ---
This is what Dustmite reduced it to:

fromVararg()
{
    new [types[i].tsize];
}

--
August 31, 2015
https://issues.dlang.org/show_bug.cgi?id=14986

--- Comment #3 from Jacob Carlborg <doob@me.com> ---
And here's a test case with valid code:

struct Foo
{
    int tsize;
}

void main()
{
    Foo[] types;
    new void[types[0].tsize];
}

--
August 31, 2015
https://issues.dlang.org/show_bug.cgi?id=14986

--- Comment #4 from Kenji Hara <k.hara.pg@gmail.com> ---
(In reply to Jacob Carlborg from comment #2)
(In reply to Jacob Carlborg from comment #3)

Thanks. I'll start working on this.

--
August 31, 2015
https://issues.dlang.org/show_bug.cgi?id=14986

Kenji Hara <k.hara.pg@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice, pull
            Summary|Assertion failed:           |[REG2.068.1-b2] Assertion
                   |(id->dyncast() ==           |failed: (id->dyncast() ==
                   |DYNCAST_DSYMBOL)            |DYNCAST_DSYMBOL)

--- Comment #5 from Kenji Hara <k.hara.pg@gmail.com> ---
https://github.com/D-Programming-Language/dmd/pull/5004

--
September 01, 2015
https://issues.dlang.org/show_bug.cgi?id=14986

--- Comment #6 from github-bugzilla@puremagic.com ---
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)

--
September 01, 2015
https://issues.dlang.org/show_bug.cgi?id=14986

github-bugzilla@puremagic.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--
September 01, 2015
https://issues.dlang.org/show_bug.cgi?id=14986

--- Comment #7 from Jacob Carlborg <doob@me.com> ---
Thanks for the quick fix.

--
September 02, 2015
https://issues.dlang.org/show_bug.cgi?id=14986

--- Comment #8 from github-bugzilla@puremagic.com ---
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

--