You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
350 B
17 lines
350 B
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
|
|
|
template <typename T>
|
|
struct A {
|
|
typedef int iterator; // expected-note{{declared here}}
|
|
};
|
|
|
|
template <typename T>
|
|
void f() {
|
|
class A <T> ::iterator foo; // expected-error{{elaborated type refers to a typedef}}
|
|
}
|
|
|
|
void g() {
|
|
f<int>(); // expected-note{{in instantiation of function template}}
|
|
}
|
|
|