repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
tm
/
pr80059-2.C
blob
10edb3a6de59d3ede7eb9219848024083ada4e1a
1
// PR c++/80059
2
// { dg-do compile { target c++11 } }
3
// { dg-options "-fgnu-tm" }
4
5
template<typename T> int foo(T b)
6
{
7
return __transaction_atomic noexcept(b) (0); // { dg-error "is not a constant expression" }
8
}
9
10
void bar()
11
{
12
foo(true);
13
}