PR c/45784
commitdf930a61c2beccd6beb8ecc6de13801f1017ff26
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 27 Jul 2017 19:13:42 +0000 (27 19:13 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 27 Jul 2017 19:13:42 +0000 (27 19:13 +0000)
tree8e297a3f30cbc148915200b3e303439c75bae8c3
parent26dde94de09cd19c63fed18f2dad9821c1426c4f
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@250635 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/c-family/ChangeLog
gcc/c-family/c-omp.c
libgomp/ChangeLog
libgomp/testsuite/libgomp.c++/pr45784.C [new file with mode: 0644]
libgomp/testsuite/libgomp.c/pr45784.c [new file with mode: 0644]