https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48078

fkostenzer at live dot at changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fkostenzer at live dot at

--- Comment #6 from fkostenzer at live dot at ---
This can also be triggered on gcc 9 using
```
class A
{
    int foo() const { return 42; }
};

template<typename T=void>
struct B : public A
{
    static constexpr auto member_fn = &B::foo;
};

int main()
{
    return (A().*B<>::member_fn)();
}
```

running `g++ -std=c++17 -O2 -Wall -Wextra` produces
main:
        mov     eax, 42
        ret

Reply via email to