[Bug c++/71837] [4.9/5/6/7 Regression] ICE on valid C++14 code with initialized lambda capture: in tsubst_pack_expansion, at cp/pt.c:10905
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jul 25 19:17:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71837
--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Mon Jul 25 19:16:16 2016
New Revision: 238733
URL: https://gcc.gnu.org/viewcvs?rev=238733&root=gcc&view=rev
Log:
PR c++/71837 - pack expansion in init-capture
* lambda.c (add_capture): Leave a pack expansion in a TREE_LIST.
(build_lambda_object): Call build_x_compound_expr_from_list.
* pt.c (tsubst) [DECLTYPE_TYPE]: Likewise.
Added:
trunk/gcc/testsuite/g++.dg/cpp1y/lambda-init15.C
trunk/gcc/testsuite/g++.dg/cpp1y/lambda-init15a.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/lambda.c
trunk/gcc/cp/pt.c
More information about the Gcc-bugs
mailing list