Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp2a
/
concepts-err2.C
blob: c0372a6096b2892c9353882d44e70698f52ac8dc [
file
] [
log
] [
blame
]
// PR c++/95735
// { dg-do compile { target concepts } }
template
<
auto
F
>
requires requires
{
F
();
}
bool
v
{};
void
f
()
{
int
x
;
static_assert
(
v
<[&]
{
x
++;
}>);
// { dg-error "not a constant expression" }
}