blob: 07778ddfc900dbd21b0f48442699b7f1376a524e [file] [log] [blame]
Nick Lewycky446e4022011-01-24 19:01:04 +00001// RUN: %clang_cc1 -fsyntax-only -verify %s
2
3template <typename T>
4struct A {
5 typedef int iterator; // expected-note{{declared here}}
6};
7
8template <typename T>
9void f() {
10 class A <T> ::iterator foo; // expected-error{{elaborated type refers to a typedef}}
11}
12
13void g() {
14 f<int>(); // expected-note{{in instantiation of function template}}
15}
16