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 | 822698412b63ad76242a4a3db6403212b56c9b23 (patch) | |
tree | 31febf1aebe112be667208134a275385a6fa5cb7 /clang/test/SemaCXX/nested-name-spec.cpp | |
parent | e83c731cad3009ba20d0d0d990789ab5de38d192 (diff) | |
download | bcm5719-llvm-822698412b63ad76242a4a3db6403212b56c9b23.tar.gz bcm5719-llvm-822698412b63ad76242a4a3db6403212b56c9b23.zip |
PR12500: Improve the wording of the diagnostic for a redefinition of a name
in the wrong namespace scope. Patch by Jonathan Sauer!
llvm-svn: 154656
Diffstat (limited to 'clang/test/SemaCXX/nested-name-spec.cpp')
-rw-r--r-- | clang/test/SemaCXX/nested-name-spec.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/SemaCXX/nested-name-spec.cpp b/clang/test/SemaCXX/nested-name-spec.cpp index a60b115695d..b3176348448 100644 --- a/clang/test/SemaCXX/nested-name-spec.cpp +++ b/clang/test/SemaCXX/nested-name-spec.cpp @@ -45,7 +45,7 @@ void C2::m() { } namespace B { - void ::A::Af() {} // expected-error {{definition or redeclaration of 'Af' not in a namespace enclosing 'A'}} + void ::A::Af() {} // expected-error {{cannot define or redeclare 'Af' here because namespace 'B' does not enclose namespace 'A'}} } void f1() { |