https://gcc.gnu.org/bugzilla/show_bug.cgi?id=45784
--- Comment #7 from Aldy Hernandez <aldyh at gcc dot gnu.org> --- Author: aldyh Date: Wed Sep 13 15:53:59 2017 New Revision: 252125 URL: https://gcc.gnu.org/viewcvs?rev=252125&root=gcc&view=rev Log: PR c/45784 * c-omp.c (c_finish_omp_for): If the condition is wrapped in rhs of COMPOUND_EXPR(s), skip them and readd their lhs into new COMPOUND_EXPRs around the rhs of the comparison. * testsuite/libgomp.c/pr45784.c: New test. * testsuite/libgomp.c++/pr45784.C: New test. Added: branches/range-gen2/libgomp/testsuite/libgomp.c++/pr45784.C branches/range-gen2/libgomp/testsuite/libgomp.c/pr45784.c Modified: branches/range-gen2/gcc/c-family/ChangeLog branches/range-gen2/gcc/c-family/c-omp.c branches/range-gen2/libgomp/ChangeLog