Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
tm
/
pr80059-2.C
blob: 10edb3a6de59d3ede7eb9219848024083ada4e1a [
file
] [
log
] [
blame
]
// PR c++/80059
// { dg-do compile { target c++11 } }
// { dg-options "-fgnu-tm" }
template
<
typename
T
>
int
foo
(
T b
)
{
return
__transaction_atomic noexcept
(
b
)
(
0
);
// { dg-error "is not a constant expression" }
}
void
bar
()
{
foo
(
true
);
}