PR c++/80767 - unnecessary instantiation of generic lambda
authorJason Merrill <jason@redhat.com>
Tue, 29 Aug 2017 19:40:55 +0000 (15:40 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 29 Aug 2017 19:40:55 +0000 (15:40 -0400)
commit1a9de5b6b56a726313069f4447fbbbee469e99dc
tree250e589eb24f60c22a8e42d2d51f5d1105992b63
parentb3eae0dd176c15cf4b358ae5d93d7c3144d253fc
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.

From-SVN: r251427
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/testsuite/g++.dg/cpp1z/lambda-inherit1.C [new file with mode: 0644]