Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp2a
/
class-deduction-alias3.C
blob: 318d4c942ce5a590426525c242f2f34654b403f6 [
file
] [
log
] [
blame
]
// PR c++/95486
// { dg-do compile { target c++20 } }
template
<
class
T
,
class
U
>
struct
X
{
X
(
U
)
requires __is_same
(
U
,
int
)
{}
};
template
<
class
U
>
using
Y
=
X
<
void
,
U
>;
Y y
{
1
};
Y z
{
'a'
};
// { dg-error "failed|no match" }