PR c++/82882 - ICE with lambda in template default argument.
authorJason Merrill <jason@redhat.com>
Fri, 15 Jun 2018 20:22:44 +0000 (16:22 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 15 Jun 2018 20:22:44 +0000 (16:22 -0400)
commit582f844c6e30e59ac5641a04cfb7fdd1aff78c66
treee8d7988ab646f3a4845371fd779e5edee4b9690b
parent508f1cb51f5872f425a3d4eb3ab8bf5a76a692ac
PR c++/82882 - ICE with lambda in template default argument.

* lambda.c (record_null_lambda_scope): New.
* pt.c (tsubst_lambda_expr): Use it.
* name-lookup.c (do_pushtag): Don't give a lambda DECL_CONTEXT of a
function that isn't open.

From-SVN: r261654
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/lambda.c
gcc/cp/name-lookup.c
gcc/cp/pt.c
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-defarg8.C [new file with mode: 0644]