[Bug c/45784] gcc OpenMP - error: invalid controlling predicate
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Sep 16 18:36:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=45784
--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Sat Sep 16 18:36:03 2017
New Revision: 252882
URL: https://gcc.gnu.org/viewcvs?rev=252882&root=gcc&view=rev
Log:
Backported from mainline
2017-07-27 Jakub Jelinek <jakub@redhat.com>
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/gcc-5-branch/libgomp/testsuite/libgomp.c++/pr45784.C
branches/gcc-5-branch/libgomp/testsuite/libgomp.c/pr45784.c
Modified:
branches/gcc-5-branch/gcc/c-family/ChangeLog
branches/gcc-5-branch/gcc/c-family/c-omp.c
branches/gcc-5-branch/libgomp/ChangeLog
More information about the Gcc-bugs
mailing list