gcc/testsuite/g++.dg/cpp1y/alias-decl1.C
raw| 1 | // DR 1710 - Missing template keyword in class-or-decltype |
| 2 | // { dg-do compile { target c++14 } } |
| 3 | |
| 4 | template <int> struct S { |
| 5 | template <int> struct A; |
| 6 | template <int N> using U = typename A<N>::foo; |
| 7 | }; |
| 8 | template <typename T> typename S<1>::U<T::foo>::type a; |
| 9 | template <typename T> typename S<1>::template U<T::foo>::type a2; |