1 // PR c++/15227 2 3 template<typename> struct A {}; 4 foo()5 template<typename T> void A<T>::B::foo() {} // { dg-error "" } 6