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

2018-02-19 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84448

--- Comment #2 from Jakub Jelinek  ---
Author: jakub
Date: Mon Feb 19 19:16:26 2018
New Revision: 257821

URL: https://gcc.gnu.org/viewcvs?rev=257821=gcc=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

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

2018-02-19 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84448

Jakub Jelinek  changed:

   What|Removed |Added

   Priority|P3  |P4
 CC||jakub at gcc dot gnu.org
   Target Milestone|--- |6.5

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

2018-02-18 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84448

Martin Sebor  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2018-02-18
 CC||msebor at gcc dot gnu.org
 Ever confirmed|0   |1

--- Comment #1 from Martin Sebor  ---
Confirmed with the top of trunk.  Bisected to r230365 (gcc 6.0.0):

r230365 | jason | 2015-11-13 19:08:05 -0500 (Fri, 13 Nov 2015) | 59 lines

Merge C++ delayed folding branch.