Catch placeholder types in DefaultLvalueConversion
and DefaultFunctionArrayLvalueConversion. To prevent
significant regression for should-this-be-a-call fixits,
and to repair some such regression from the introduction of
bound member placeholders, make those placeholder checks
try to build calls appropriately. Harden the build-a-call
logic while we're at it.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141738 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/FixIt/typo-crash.cpp b/test/FixIt/typo-crash.cpp
index 8f0c989..92d2037 100644
--- a/test/FixIt/typo-crash.cpp
+++ b/test/FixIt/typo-crash.cpp
@@ -4,9 +4,9 @@
// PR10355
template<typename T> void template_id1() { // expected-note {{'template_id1' declared here}} \
- // expected-note {{candidate function}}
+ // expected-note {{possible target for call}}
template_id2<> t; // expected-error {{no template named 'template_id2'; did you mean 'template_id1'?}} \
// expected-error {{expected ';' after expression}} \
- // expected-error {{cannot resolve overloaded function 'template_id1' from context}} \
+ // expected-error {{reference to overloaded function could not be resolved; did you mean to call it?}} \
// expected-error {{use of undeclared identifier 't'}}
}