1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
// { dg-do compile { target c++11 } } // { dg-final { scan-assembler "_ZN1B1gIcEEN7__cxx111XEv" } } inline namespace __cxx11 __attribute__((__abi_tag__ ("ABI_TAG"))) { class X {}; } struct B { X f(); template <class U> X g(); }; int main() { B b; b.g<char>(); return 0; }