[Bug c++/84448] [6/7/8 Regression] ICE with broken condition in parallel for loop

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Feb 19 19:29:00 GMT 2018


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

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Mon Feb 19 19:16:26 2018
New Revision: 257821

URL: https://gcc.gnu.org/viewcvs?rev=257821&root=gcc&view=rev
Log:
        PR c++/84448
        * parser.c (cp_parser_binary_expression): For no_toplevel_fold_p, if
        either operand is error_mark_node, set current.lhs to that instead of
        creating a binary op with error_mark_node operands.

        * g++.dg/gomp/pr84448.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/gomp/pr84448.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/parser.c
    trunk/gcc/testsuite/ChangeLog


More information about the Gcc-bugs mailing list