[Bug c++/80767] Eager instantiation of generic lambda body when not required

jason at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Aug 29 22:37:00 GMT 2017


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


More information about the Gcc-bugs mailing list