2 // Origin: Gabriel Dos Reis <Gabriel.Dos-Reis@cmla.ens-cachan.fr>
4 // Bug 29. We failed to verify that template argument deduction
5 // produces a valid result in nondeduce context.
7 template<class T> struct Y { typedef T X; };
9 template<class T, class U> struct Base {};
11 template<class T> struct Base<T, typename T::X> {};
13 template<class T> struct Base<typename T::X, T> {};
15 template<class T, class U> struct Derived : Base <T, U> {};
19 template<class T> struct Derived<A, T> : Base< Y<T>, Y<T> > {};