Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
class-deduction80.C
blob: 5ccfc932a2bde1b18c396ef6e8dbedba9d101223 [
file
] [
log
] [
blame
]
// PR c++/99103
// { dg-do compile { target c++17 } }
template
<
class
T
>
struct
X
{
T a
;
};
template
<
class
T
>
struct
Y
:
X
<
T
>
{};
extern
const
Y
<int>
y
;
using
type
=
decltype
(
X
{
y
});
using
type
=
X
<int>
;
// not X<Y<int>>