re PR c++/58706 (ICE with lambda in OpenMP for-loop)
authorJakub Jelinek <jakub@gcc.gnu.org>
Mon, 8 Aug 2016 19:50:29 +0000 (21:50 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 8 Aug 2016 19:50:29 +0000 (21:50 +0200)
commit5c9343960762bda86bc64dc19862dcf3088102cd
tree3f56e326fdf2a763aae6e017857aec98eedbd43d
parent77524e0d975d91248c2178a7d607cc6a19209cb6
re PR c++/58706 (ICE with lambda in OpenMP for-loop)

PR c++/58706
* parser.c: Include tree-iterator.h.
(cp_parser_omp_for_loop_init): Move lambda DECL_EXPRs from init
to FOR_BLOCK.
(cp_parser_omp_for_loop): Handle non-STATEMENT_LIST FOR_BLOCK
entries.

* testsuite/libgomp.c++/pr58706.C: New test.

From-SVN: r239251
gcc/cp/ChangeLog
gcc/cp/parser.c
libgomp/ChangeLog
libgomp/testsuite/libgomp.c++/pr58706.C [new file with mode: 0644]