aboutsummaryrefslogtreecommitdiff
path: root/test/SemaCXX/using-directive.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2009-11-18 22:49:29 +0000
committerJohn McCall <rjmccall@apple.com>2009-11-18 22:49:29 +0000
commit6826314938f8510cd1a6b03b5d032592456ae27b (patch)
treee090483800adfec106f0b64a5dc05eb187cb2bf7 /test/SemaCXX/using-directive.cpp
parent0da2adbd3a0cdb18305ebd492a817e985f74ead7 (diff)
Overhaul previous-declaration and overload checking to work on lookup results
rather than NamedDecl*. This is a major step towards eliminating OverloadedFunctionDecl. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89263 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/using-directive.cpp')
-rw-r--r--test/SemaCXX/using-directive.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/SemaCXX/using-directive.cpp b/test/SemaCXX/using-directive.cpp
index 78ad04293b..732daacffc 100644
--- a/test/SemaCXX/using-directive.cpp
+++ b/test/SemaCXX/using-directive.cpp
@@ -54,9 +54,7 @@ using namespace A;
void K1::foo() {} // okay
-// FIXME: Do we want err_ovl_no_viable_function_in_init here?
-struct K2 k2; // expected-error{{reference to 'K2' is ambiguous}} \
- expected-error{{incomplete type}}
+struct K2 *k2; // expected-error{{reference to 'K2' is ambiguous}}
// FIXME: This case is incorrectly diagnosed!
//K2 k3;