This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/80767] Eager instantiation of generic lambda body when not required
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 29 Aug 2017 19:41:27 +0000
- Subject: [Bug c++/80767] Eager instantiation of generic lambda body when not required
- Auto-submitted: auto-generated
- References: <bug-80767-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80767
--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Tue Aug 29 19:40:55 2017
New Revision: 251427
URL: https://gcc.gnu.org/viewcvs?rev=251427&root=gcc&view=rev
Log:
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.
Added:
trunk/gcc/testsuite/g++.dg/cpp1z/lambda-inherit1.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/call.c