This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/45784] gcc OpenMP - error: invalid controlling predicate


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]