Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp2a
/
nontype-class31.C
blob: dbecf91c46d322a8ed727557df041eb9613e6476 [
file
] [
log
] [
blame
]
// PR c++/88092
// { dg-do compile { target c++20 } }
template
<
typename
T
>
struct
S
{
constexpr
S
(...)
{
}
};
template
<
typename
T
>
S
(
T
)
->
S
<
T
>;
template
<
S s
>
struct
foo
{
};
template
<
S s
>
void
fn
()
{
auto
t
=
s
;
foo
<t>
f1
;
foo
<s>
f2
;
}