☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
class-deduction80.C
☽
☼
gcc/testsuite/g++.dg/cpp1z/class-deduction80.C
code
plain
raw
1
// PR c++/99103
2
// { dg-do compile { target c++17 } }
3
4
template <class T> struct X { T a; };
5
template <class T> struct Y : X<T> {};
6
7
extern const Y<int> y;
8
using type = decltype(X{y});
9
using type = X<int>; // not X<Y<int>>