When diagnosing that a decl ref expr is not a value, note the declaration

with "declared at" rather than "previous declaration is here".

llvm-svn: 91699
This commit is contained in:
John McCall 2009-12-18 18:35:10 +00:00
parent d0139fd3e5
commit b48971d63f
1 changed files with 1 additions and 1 deletions

View File

@ -1481,7 +1481,7 @@ Sema::BuildDeclarationNameExpr(const CXXScopeSpec &SS,
if (!VD) {
Diag(Loc, diag::err_ref_non_value)
<< D << SS.getRange();
Diag(D->getLocation(), diag::note_previous_declaration);
Diag(D->getLocation(), diag::note_declared_at);
return ExprError();
}