This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/82053] [8 Regression] ICE on invalid code


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82053

--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Thu Sep  7 01:02:46 2017
New Revision: 251826

URL: https://gcc.gnu.org/viewcvs?rev=251826&root=gcc&view=rev
Log:
        PR c++/82053 - ICE with default argument in lambda in template

        * pt.c (tsubst_arg_types): Substitute default arguments for lambdas
        in templates.
        (retrieve_specialization): Use lambda_fn_in_template_p.
        * cp-tree.h: Declare it.

Added:
    trunk/gcc/testsuite/g++.dg/cpp1y/lambda-defarg7.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/cp/pt.c

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]