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, 27 Jul 2017 19:14:14 +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 #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