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

Simen Kjaeraas <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice
                 CC|                            |[email protected]
            Summary|type of tuple is lost?      |ICE with __traits and
                   |                            |templated member function
                   |                            |referenced in non-templated
                   |                            |member function

--- Comment #1 from Simen Kjaeraas <[email protected]> ---
By prodding the code a bit, I was able to get a compiler crash. I believe the
core issue is the same. Here's the simplified code:

struct S() {
    void fun() {
        gun("");
    }
    void gun(T)(T) {
        alias buggy = bug;
    }
}

alias X = S!();

void main() {
    X().gun(0);
}

alias bug =  __traits(getMember, X, "fun");

I've not been able to reduce it beyond this.

--

Reply via email to