summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaTemplate/recursive-template-instantiation.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2009-12-16 08:11:27 +0000
committerJohn McCall <rjmccall@apple.com>2009-12-16 08:11:27 +0000
commitd681c3959f85b53342a694a6718192c8f52e3833 (patch)
treea678d9daf1b1faba65ce7ac073fe23c30866a347 /clang/test/SemaTemplate/recursive-template-instantiation.cpp
parent2003b908079464ae89b08f7f391269d6f0071b3d (diff)
downloadbcm5719-llvm-d681c3959f85b53342a694a6718192c8f52e3833.tar.gz
bcm5719-llvm-d681c3959f85b53342a694a6718192c8f52e3833.zip
Introduce a centralized routine in Sema for diagnosing failed lookups (when
used as expressions). In dependent contexts, try to recover by doing a lookup in previously-dependent base classes. We get better diagnostics out, but unfortunately the recovery fails: we need to turn it into a method call expression, not a bare call expression. Thus this is still a WIP. llvm-svn: 91525
Diffstat (limited to 'clang/test/SemaTemplate/recursive-template-instantiation.cpp')
-rw-r--r--clang/test/SemaTemplate/recursive-template-instantiation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/SemaTemplate/recursive-template-instantiation.cpp b/clang/test/SemaTemplate/recursive-template-instantiation.cpp
index e86196cbb57..0ddedaf2354 100644
--- a/clang/test/SemaTemplate/recursive-template-instantiation.cpp
+++ b/clang/test/SemaTemplate/recursive-template-instantiation.cpp
@@ -1,6 +1,6 @@
// RUN: %clang_cc1 -fsyntax-only -verify %s
-template<typename T> void f(T* t) {
+template<typename T> void f(T* t) { // expected-note{{candidate function}}
f(*t); // expected-error{{no matching function}}\
// expected-note 3{{requested here}}
}
OpenPOWER on IntegriCloud