Name, LookupOrdinaryName);
if (!R) {
- Diag(IdentLoc, diag::err_typecheck_no_member_deprecated) << Name << SS.getRange();
+ DiagnoseMissingMember(IdentLoc, Name, NNS, SS.getRange());
return 0;
}
int A::B::S::i = 10; // expected-error {{struct 'A::B::S' has no member named 'i'}}
int A::B::U::i = 10; // expected-error {{union 'A::B::U' has no member named 'i'}}
+using A::B::D; // expected-error {{namespace 'A::B' has no member named 'D'}}
+
+struct S : A::B::C {
+ using A::B::C::f; // expected-error {{class 'A::B::C' has no member named 'f'}}
+
+};