https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88976

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Aug 30 11:31:02 2019
New Revision: 275091

URL: https://gcc.gnu.org/viewcvs?rev=275091&root=gcc&view=rev
Log:
        Backported from mainline
        2019-01-24  Jakub Jelinek  <ja...@redhat.com>

        PR c++/88976
        * semantics.c (finish_omp_cancel): Use maybe_convert_cond when not in
        template or build_x_binary_op otherwise.

        * c-c++-common/gomp/cancel-2.c: New test.
        * gcc.dg/gomp/cancel-1.c: New test.
        * g++.dg/gomp/cancel-1.C: New test.
        * g++.dg/gomp/cancel-2.C: New test.
        * g++.dg/gomp/cancel-3.C: New test.

Added:
    branches/gcc-7-branch/gcc/testsuite/c-c++-common/gomp/cancel-2.c
    branches/gcc-7-branch/gcc/testsuite/g++.dg/gomp/cancel-1.C
    branches/gcc-7-branch/gcc/testsuite/g++.dg/gomp/cancel-2.C
    branches/gcc-7-branch/gcc/testsuite/g++.dg/gomp/cancel-3.C
    branches/gcc-7-branch/gcc/testsuite/gcc.dg/gomp/cancel-1.c
Modified:
    branches/gcc-7-branch/gcc/cp/ChangeLog
    branches/gcc-7-branch/gcc/cp/semantics.c
    branches/gcc-7-branch/gcc/testsuite/ChangeLog

Reply via email to