This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]