https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98481
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW CC| |jakub at gcc dot gnu.org Last reconfirmed| |2021-01-07 Ever confirmed|0 |1 --- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> --- This boils down to: inline namespace N __attribute ((__abi_tag__ ("cxx11"))) { struct A {}; } template <typename T> struct B { typedef int size_type; }; struct S1 { B<A>::size_type foo () const { return 1; } }; struct S2 { B<A>::size_type foo () const; }; int S2::foo () const { return 2; } int main () { auto f1 = &S1::foo; auto f2 = &S2::foo; }