blob: 1b705b643c100b5cd35dccbdfd09a2b7c2f78596 [file] [log] [blame]
// PR c++/80059
// { dg-do compile { target c++11 } }
// { dg-options "-fgnu-tm" }
template<typename> int foo(bool b)
{
return __transaction_atomic noexcept(b) (0); // { dg-error "is not a constant expression" }
}
void bar()
{
foo<int>(true);
}