This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/45784] gcc OpenMP - error: invalid controlling predicate
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 07 Sep 2017 20:19:16 +0000
- Subject: [Bug c/45784] gcc OpenMP - error: invalid controlling predicate
- Auto-submitted: auto-generated
- References: <bug-45784-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=45784
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Sep 7 20:18:45 2017
New Revision: 251848
URL: https://gcc.gnu.org/viewcvs?rev=251848&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-7-branch/libgomp/testsuite/libgomp.c++/pr45784.C
branches/gcc-7-branch/libgomp/testsuite/libgomp.c/pr45784.c
Modified:
branches/gcc-7-branch/gcc/c-family/ChangeLog
branches/gcc-7-branch/gcc/c-family/c-omp.c
branches/gcc-7-branch/libgomp/ChangeLog