Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp2a
/
concepts-uneval1.C
blob: 4c5f1b5c01919ad90030e48eacba9ee684e02020 [
file
] [
log
] [
blame
]
// PR c++/99961
// { dg-do compile { target c++20 } }
struct
A
{
static
const
int
x
=
42
;
bool
y
;
};
void
f
(
auto
a
)
requires
(
a
.
x
==
42
)
{
}
template
void
f
(
A
);
template
<
bool
V
>
concept
C
=
V
||
A
::
y
;
static_assert
(
C
<true>
);