Clang Project

clang_source_code/test/SemaCXX/PR8755.cpp
1// 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{{typedef 'iterator' cannot be referenced with a class specifier}}
11}
12
13void g() {
14  f<int>();  // expected-note{{in instantiation of function template}}
15}
16
17