diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-04-13 04:07:40 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-04-13 04:07:40 +0000 |
commit | a1c4f7c833093f87d5187c4449a3d4534cfa40a4 (patch) | |
tree | 31ca867f759b210876a2da1893cff1528b92a3bf /lib/Sema/SemaDecl.cpp | |
parent | 5e6c3f0397254e2a1a9ef85cf13232f89e653640 (diff) |
PR12500: Improve the wording of the diagnostic for a redefinition of a name
in the wrong namespace scope. Patch by Jonathan Sauer!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154656 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDecl.cpp')
-rw-r--r-- | lib/Sema/SemaDecl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp index f54f0fd942..8b314b524f 100644 --- a/lib/Sema/SemaDecl.cpp +++ b/lib/Sema/SemaDecl.cpp @@ -3307,7 +3307,7 @@ bool Sema::diagnoseQualifiedDeclaration(CXXScopeSpec &SS, DeclContext *DC, << Name << SS.getRange(); else Diag(Loc, diag::err_invalid_declarator_scope) - << Name << cast<NamedDecl>(DC) << SS.getRange(); + << Name << cast<NamedDecl>(Cur) << cast<NamedDecl>(DC) << SS.getRange(); return true; } |