Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
concepts
/
pr93729.C
blob: 7397edb311d95664c8aa990dd13073f310728d1c [
file
] [
log
] [
blame
]
// { dg-do compile { target c++2a } }
// PR c++/93729
struct
B
{
int
a
:
4
;
int
b
:
4
;
};
template
<
typename
T
>
concept
c1
=
requires
(
T x
,
void
(
f
)(
int
&))
{
f
(
x
.
a
);
};
// { dg-bogus "cannot bind" }
static_assert
(!
c1
<
B
>);