https://gcc.gnu.org/bugzilla/show_bug.cgi?id=45784
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Thu Jul 27 19:13:42 2017 New Revision: 250635 URL: https://gcc.gnu.org/viewcvs?rev=250635&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: trunk/libgomp/testsuite/libgomp.c++/pr45784.C trunk/libgomp/testsuite/libgomp.c/pr45784.c Modified: trunk/gcc/c-family/ChangeLog trunk/gcc/c-family/c-omp.c trunk/libgomp/ChangeLog