[Issue 8262] ICE(mtype.c) alias this to alias of an expression tuple

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Nov 28 09:24:21 PST 2014


https://issues.dlang.org/show_bug.cgi?id=8262

Rainer Schuetze <r.sagitario at gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |r.sagitario at gmx.de

--- Comment #7 from Rainer Schuetze <r.sagitario at gmx.de> ---
Here's another example of a crash at the same location reduced by dustmite:

struct Tuple9709(T...)
{
    alias T expand;
    alias expand this;
}

auto data = RTInfoImpl2!(Tuple9709!1);

template RTInfoImpl2(T)
{
    static if (is(T D == U))
        immutable(RTInfoData) RTInfoImpl2 ;
}

[this is also triggered by some RTInfo compiled with the dmd test suite.]

There are some code locations that check the pointer returned by aliasthisOf(),
some do not. Should these be added in the places where the checks are missing?

--


More information about the Digitalmars-d-bugs mailing list