// RUN: %clang_cc1 -fsyntax-only -verify %stemplate<typename T>struct A {typedefint iterator;// expected-note{{declared here}}};template<typename T>voidf() {class A <T> ::iterator foo;// expected-error{{elaborated type refers to a typedef}}}voidg() {
f<int>();// expected-note{{in instantiation of function template}}}