https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84448
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Sat Mar 3 13:35:37 2018 New Revision: 258197 URL: https://gcc.gnu.org/viewcvs?rev=258197&root=gcc&view=rev Log: Backported from mainline 2018-02-19 Jakub Jelinek <ja...@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. Added: branches/gcc-7-branch/gcc/testsuite/g++.dg/gomp/pr84448.C Modified: branches/gcc-7-branch/gcc/cp/ChangeLog branches/gcc-7-branch/gcc/cp/parser.c branches/gcc-7-branch/gcc/testsuite/ChangeLog