aboutsummaryrefslogtreecommitdiff
path: root/test/SemaCXX/using-directive.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2009-11-18 23:05:13 +0000
committerJohn McCall <rjmccall@apple.com>2009-11-18 23:05:13 +0000
commit6654294ec1074d069c35152ea258f95f97ca7625 (patch)
tree8f19f6b2524fb697272056105d2a63c68744bdaf /test/SemaCXX/using-directive.cpp
parent424b2a546dbd09cf70d43087771c7fff851ca158 (diff)
Resolve this FIXME: unelaborated lookups are ambiguous, too.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89266 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/using-directive.cpp')
-rw-r--r--test/SemaCXX/using-directive.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/test/SemaCXX/using-directive.cpp b/test/SemaCXX/using-directive.cpp
index 732daacffc..3b67c7a5b6 100644
--- a/test/SemaCXX/using-directive.cpp
+++ b/test/SemaCXX/using-directive.cpp
@@ -45,10 +45,10 @@ namespace A {
using namespace E; // expected-error{{reference to 'E' is ambiguous}}
}
- struct K2 {}; // expected-note{{candidate found by name lookup is 'A::K2'}}
+ struct K2 {}; // expected-note 2{{candidate found by name lookup is 'A::K2'}}
}
-struct K2 {}; // expected-note{{candidate found by name lookup is 'K2'}}
+struct K2 {}; // expected-note 2{{candidate found by name lookup is 'K2'}}
using namespace A;
@@ -56,9 +56,7 @@ void K1::foo() {} // okay
struct K2 *k2; // expected-error{{reference to 'K2' is ambiguous}}
-// FIXME: This case is incorrectly diagnosed!
-//K2 k3;
-
+K2 *k3; // expected-error{{reference to 'K2' is ambiguous}}
class X { // expected-note{{candidate found by name lookup is 'X'}}
// FIXME: produce a suitable error message for this