1// PR c++/24260 2// { dg-do compile { target { { i?86-*-* x86_64-*-* } && ia32 } } } 3 4#define stdcall __attribute__((stdcall)) 5 6struct T { 7 template <class S> 8 static int stdcall func(int arg1, int arg2); 9}; 10 11template <class S> 12int stdcall T::func(int arg1, int arg2) 13{ 14 return arg1+arg2; 15} 16 17struct dummy {}; 18 19void xx() 20{ 21 int (stdcall *ptr2)(int,int) = &T::func<dummy>; 22} 23 24