]> git.ipfire.org Git - thirdparty/gcc.git/commit
backport: re PR c++/84448 (ICE with broken condition in parallel for loop)
authorJakub Jelinek <jakub@redhat.com>
Mon, 25 Jun 2018 17:23:21 +0000 (19:23 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 25 Jun 2018 17:23:21 +0000 (19:23 +0200)
commit1e2097559d02aa4523d878e60b25b78ba99274c2
tree8238b805f5402382d6f68bf24545cea4e84a17f4
parentb8371008b80b548cf61be478498318ba0c1f96b8
backport: re PR c++/84448 (ICE with broken condition in parallel for loop)

Backported from mainline
2018-02-19  Jakub Jelinek  <jakub@redhat.com>

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.

From-SVN: r262065
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/gomp/pr84448.C [new file with mode: 0644]