Debian Codegraph @

gcc/testsuite/g++.dg/cpp1z/class-deduction80.C

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>>