Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
concepts
/
pr84330.C
blob: 3f5b1f405a1b84e3b89ae6284dd2d991803f828a [
file
] [
log
] [
blame
]
// PR c++/84330
// { dg-do compile { target c++17_only } }
// { dg-options "-fconcepts" }
struct
A
{
template
<
typename
T
>
requires
(
sizeof
(
T
)
>>
0
)
// { dg-error "bool" }
void
foo
(
T
);
void
bar
()
{
foo
(
0
);
// { dg-error "no matching function" }
}
};