diff options
author | Douglas Gregor <dgregor@apple.com> | 2012-03-28 16:01:27 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2012-03-28 16:01:27 +0000 |
commit | b7d17ddbf918b52f855537f16b7a7942b8d54aea (patch) | |
tree | 77daf5bab2e86f15a64a2dc97bf3f55cdc7675b3 /clang/test/SemaCXX/nested-name-spec.cpp | |
parent | aa9e4a5e590985f9e58a1efb83cb5cb10964fbbf (diff) | |
download | bcm5719-llvm-b7d17ddbf918b52f855537f16b7a7942b8d54aea.tar.gz bcm5719-llvm-b7d17ddbf918b52f855537f16b7a7942b8d54aea.zip |
Unify and fix our checking of C++ [dcl.meaning]p1's requirements
concerning qualified declarator-ids. We now diagnose extraneous
qualification at namespace scope (which we had previously missed) and
diagnose these qualification errors for all kinds of declarations; it
was rather uneven before. Fixes <rdar://problem/11135644>.
llvm-svn: 153577
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 6b3cb23e2aa..a60b115695d 100644 --- a/clang/test/SemaCXX/nested-name-spec.cpp +++ b/clang/test/SemaCXX/nested-name-spec.cpp @@ -160,7 +160,7 @@ namespace N { void f(); // FIXME: if we move this to a separate definition of N, things break! } -void ::global_func2(int) { } // expected-error{{definition or redeclaration of 'global_func2' cannot name the global scope}} +void ::global_func2(int) { } // expected-warning{{extra qualification on member 'global_func2'}} void N::f() { } // okay |