This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/82053] [8 Regression] ICE on invalid code
- 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: Thu, 07 Sep 2017 01:03:19 +0000
- Subject: [Bug c++/82053] [8 Regression] ICE on invalid code
- Auto-submitted: auto-generated
- References: <bug-82053-4@http.gcc.gnu.org/bugzilla/>
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