1 2 3 4 5 6 7 8 9 10 11 12 13 14
// { dg-do compile } // { dg-options "-fabi-version=0" } struct A { template <typename T> int f (); }; typedef int (A::*P)(); template <P> struct S {}; void g (S<&A::f<int> >) {} // { dg-final { scan-assembler _Z1g1SIXadL_ZN1A1fIiEEivEEE } }