view gcc/testsuite/g++.dg/cpp1y/alias-decl1.C @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents
children
line wrap: on
line source

// DR 1710 - Missing template keyword in class-or-decltype
// { dg-do compile { target c++14 } }

template <int> struct S {
  template <int> struct A;
  template <int N> using U = typename A<N>::foo;
};
template <typename T> typename S<1>::U<T::foo>::type a;
template <typename T> typename S<1>::template U<T::foo>::type a2;