1 // { dg-do compile { target c++11 } } 2 // { dg-options "-fgnu-tm" } 3 4 template < typename T > foo(int x,T t)5 int foo (int x, T t) 6 { 7 return __transaction_atomic noexcept (foo) (1); // { dg-error "cannot resolve" } 8 } 9