summaryrefslogtreecommitdiffstats
path: root/clang/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
commit1f82f2462de797fe08587aa8e49d968fe6877efd (patch)
treecbc8233aa88886460e7840d675357ecc68ae9535 /clang/test/SemaCXX/using-directive.cpp
parent11f305014100df85968020bf672e5236b1c81406 (diff)
downloadbcm5719-llvm-1f82f2462de797fe08587aa8e49d968fe6877efd.tar.gz
bcm5719-llvm-1f82f2462de797fe08587aa8e49d968fe6877efd.zip
Overhaul previous-declaration and overload checking to work on lookup results
rather than NamedDecl*. This is a major step towards eliminating OverloadedFunctionDecl. llvm-svn: 89263
Diffstat (limited to 'clang/test/SemaCXX/using-directive.cpp')
-rw-r--r--clang/test/SemaCXX/using-directive.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/clang/test/SemaCXX/using-directive.cpp b/clang/test/SemaCXX/using-directive.cpp
index 78ad04293bf..732daacffcc 100644
--- a/clang/test/SemaCXX/using-directive.cpp
+++ b/clang/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;
OpenPOWER on IntegriCloud