PR c++/82053 - ICE with default argument in lambda in template
authorJason Merrill <jason@redhat.com>
Thu, 7 Sep 2017 01:02:46 +0000 (21:02 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 7 Sep 2017 01:02:46 +0000 (21:02 -0400)
commite76b247239756b547eaa51d9fa0629416a293269
tree21aace7cb949e949bd716497d52d15eb2dd4193d
parentf4942d79564674324584b98f5081cdcae3c6daa8
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.

From-SVN: r251826
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/pt.c
gcc/testsuite/g++.dg/cpp1y/lambda-defarg7.C [new file with mode: 0644]