Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
tm
/
pr80059.C
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
);
}