Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
concepts
/
intro5.C
blob: bbfef7bed9ee4ddd9d69b861cbd43cebaf560d5c [
file
] [
log
] [
blame
]
// { dg-do compile { target c++17_only } }
// { dg-options "-fconcepts" }
template
<
typename
T
,
typename
U
=
int
>
concept
bool
C
()
{
return
sizeof
(
U
)
==
sizeof
(
int
);
}
C
{
A
}
void
f1
()
{}
// { dg-error "all template parameters" }