Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp2a
/
concepts-ctad2.C
blob: 0d7f9790777aec5179dba0b39579ab62807a31ef [
file
] [
log
] [
blame
]
// PR c++/98611
// { dg-do compile { target c++20 } }
template
<class>
struct
S
{
template
<
class
T
>
struct
Tmpl
{
Tmpl
(
T
);
};
template
<
class
T
>
requires requires
(
T
object
)
{
Tmpl
{
object
};
}
static
int
f
(
T
);
};
int
a
=
S
<int>
::
f
(
0
);