re PR c++/67411 (internal compiler error: in tsubst_copy, at cp/pt.c:13473)
authorJason Merrill <jason@redhat.com>
Sun, 20 Dec 2015 18:38:37 +0000 (13:38 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Sun, 20 Dec 2015 18:38:37 +0000 (13:38 -0500)
commit72013ec51a97b6a709ac96845a247119e4602254
tree59fd6f52890fff5dd866d968ff4681528d076072
parentb6b990219342543d804a269a5409091a93e6d2ea
re PR c++/67411 (internal compiler error: in tsubst_copy, at cp/pt.c:13473)

PR c++/67411

* lambda.c (generic_lambda_fn_p): Split out from...
(maybe_add_lambda_conv_op): ...here.
* semantics.c (process_outer_var_ref): Don't defer maybe-constant
variables in a generic lambda.
* pt.c (instantiate_non_dependent_or_null): New.
* init.c (constant_value_1): Use it.
* cp-tree.h: Declare it and generic_lambda_fn_p.

From-SVN: r231863
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/init.c
gcc/cp/lambda.c
gcc/cp/pt.c
gcc/cp/semantics.c
gcc/testsuite/g++.dg/cpp1y/lambda-generic-const2.C [new file with mode: 0644]