// PR c++/96560 // DR 1227 // Test that we substitute function parameter types in lexical order. template struct A { typedef typename T::type type; }; // { dg-error "void" } template void f(typename T::type, typename A::type); template long f(...); long x = f(0, 0); // { dg-bogus "" } OK template void g(T, typename A::type); template long g(...); long y = g(0, 0); // { dg-bogus "" } OK template void h(typename A::type, T); template long h(...); long z = h(0, 0); // { dg-message "required from here" } hard error