aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaDeclCXX.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Sema/SemaDeclCXX.cpp')
-rw-r--r--lib/Sema/SemaDeclCXX.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Sema/SemaDeclCXX.cpp b/lib/Sema/SemaDeclCXX.cpp
index 646ac75dd3..82cdd2f57a 100644
--- a/lib/Sema/SemaDeclCXX.cpp
+++ b/lib/Sema/SemaDeclCXX.cpp
@@ -2767,7 +2767,8 @@ NamedDecl *Sema::BuildUsingDeclaration(SourceLocation UsingLoc,
LookupQualifiedName(R, LookupContext, Name, LookupOrdinaryName);
if (R.empty()) {
- DiagnoseMissingMember(IdentLoc, Name, NNS, SS.getRange());
+ Diag(IdentLoc, diag::err_no_member)
+ << Name << LookupContext << SS.getRange();
return 0;
}