[Bug c++/58706] ICE with lambda in OpenMP for-loop

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Aug 8 19:51:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58706

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Mon Aug  8 19:50:29 2016
New Revision: 239251

URL: https://gcc.gnu.org/viewcvs?rev=239251&root=gcc&view=rev
Log:
        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.

Added:
    trunk/libgomp/testsuite/libgomp.c++/pr58706.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/parser.c
    trunk/libgomp/ChangeLog


More information about the Gcc-bugs mailing list