// PR c++/103057 // { dg-do compile { target c++11 } } template struct A { }; template struct B { using type = A; }; template struct C { using type = typename T::foo; // { dg-error "int" } }; template using L = B; template typename L::type>::type f(T) { }; int main() { f(42); // { dg-error "no match" } }