From d681c3959f85b53342a694a6718192c8f52e3833 Mon Sep 17 00:00:00 2001 From: John McCall Date: Wed, 16 Dec 2009 08:11:27 +0000 Subject: 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 --- clang/test/SemaTemplate/recursive-template-instantiation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/test/SemaTemplate/recursive-template-instantiation.cpp') 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 void f(T* t) { +template void f(T* t) { // expected-note{{candidate function}} f(*t); // expected-error{{no matching function}}\ // expected-note 3{{requested here}} } -- cgit v1.2.3