re PR c++/84448 (ICE with broken condition in parallel for loop)
authorJakub Jelinek <jakub@redhat.com>
Mon, 19 Feb 2018 19:16:26 +0000 (20:16 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 19 Feb 2018 19:16:26 +0000 (20:16 +0100)
commit4382537df8cc3d0d8622af606e4ce580d1bb4c80
tree8f32119d01786d8c7b29196ed2df898f09877a74
parent897064e27690d55c82ac1d6f23f78fa7651e0e1b
re PR c++/84448 (ICE with broken condition in parallel for loop)

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: r257821
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/gomp/pr84448.C [new file with mode: 0644]