Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp2a
/
concepts-nonbool3.C
blob: 2a2af54847b286abf58ddb8380435fc8c58c8c36 [
file
] [
log
] [
blame
]
// { dg-do compile { target c++20 } }
template
<
auto
V
>
concept
C
=
false
||
V
||
false
;
// { dg-error "has type 'int'" }
template
<
auto
V
>
int
f
()
requires C
<
V
>;
int
a
=
f
<
0
>();
// { dg-error "no match" }