// PR c++/14912 // Bug: We were instantiating A in order to compare it to the matching // argument for C, which fails. template struct A { typedef typename T::F F; }; struct B { }; template ::F > struct C { typename T::F f; // { dg-error "no type" } }; C c; // { dg-message "instantiated" }