// DR 1710 - Missing template keyword in class-or-decltype // { dg-do compile { target c++14 } } template struct S { template struct A { }; typedef A type; }; template typename S::template A foo; template typename S::template type foo2; // { dg-error "expected template-id" }