kper bbddedb3bf
Fixed grammatical error in "enum specifier" error msg #94443 (#94592)
As discussed in #94443, this PR changes the wording to be more correct.
2024-06-07 20:20:52 +04:00

17 lines
381 B
C++

// 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{{typedef 'iterator' cannot be referenced with the 'class' specifier}}
}
void g() {
f<int>(); // expected-note{{in instantiation of function template}}
}