// RUN: %clang_cc1 -fsyntax-only -verify %s
template<typename T>structA{typedefintiterator;// expected-note{{declared here}}
};template<typename T>voidf(){classA<T>::iteratorfoo;// expected-error{{typedef 'iterator' cannot be referenced with a class specifier}}
}voidg(){f<int>();// expected-note{{in instantiation of function template}}
}