PR c++/80767 - unnecessary instantiation of generic lambda
commitb38367d964273ecbfbd6e0c82ccf2d30ae63a833
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 29 Aug 2017 19:40:55 +0000 (29 19:40 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 29 Aug 2017 19:40:55 +0000 (29 19:40 +0000)
tree250e589eb24f60c22a8e42d2d51f5d1105992b63
parent2ffc5005c731f93eb8e87e84b075cde0854c44c8
PR c++/80767 - unnecessary instantiation of generic lambda

* call.c (convert_like_real): Call build_user_type_conversion_1 if
cand is null.
(add_conv_candidate): Build a ck_user conversion with no candidate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@251427 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/testsuite/g++.dg/cpp1z/lambda-inherit1.C [new file with mode: 0644]