[Bug c++/82053] [8 Regression] ICE on invalid code
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Sep 7 01:03:00 GMT 2017
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
More information about the Gcc-bugs
mailing list