2 // { dg-do compile { target c++17 } }
5 template <class T> struct b{};
6 template <class T, class T1 = b<T>>
12 template <class T, class T1 = b<T>>
13 using ss = s<T, T1>; // equivalent under proposed resolution of DR 1286
14 ss tt(1); // { dg-warning "alias template deduction" "" { target c++17_only } }
16 template <class T, class T1 = T>
17 using ss2 = s<T, T1>; // different default arg makes it non-equivalent
18 ss2 tt2(1); // { dg-error "alias template deduction" "" { target c++17_only } }