blob: 5ccfc932a2bde1b18c396ef6e8dbedba9d101223 (
plain)
1
2
3
4
5
6
7
8
9
|
// 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>>
|