From ea350180d2560ae338dacfeb454910fefcecf291 Mon Sep 17 00:00:00 2001 From: Kaelyn Uhrain Date: Thu, 4 Aug 2011 23:30:54 +0000 Subject: Fix a small bug where DiagnoseEmptyLookup would no longer print any messages when performing typo correction involving any overloaded template functions. The added test cases, while currently demontrating sub-optimal behavior, will not trigger any messages without the 1-line change to SemaExpr.cpp. llvm-svn: 136943 --- clang/lib/Sema/SemaExpr.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'clang/lib/Sema/SemaExpr.cpp') diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp index 6ace3e92e60..ffa092aad1e 100644 --- a/clang/lib/Sema/SemaExpr.cpp +++ b/clang/lib/Sema/SemaExpr.cpp @@ -1468,8 +1468,7 @@ bool Sema::DiagnoseEmptyLookup(Scope *S, CXXScopeSpec &SS, LookupResult &R, ND = Best->Function; break; default: - // Don't try to recover; it won't work. - return true; + break; } } R.addDecl(ND); -- cgit v1.2.3