[Bug c++/88976] [7/8 Regression] ICE in fold_convert_loc, at fold-const.c:2552

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Feb 7 14:40:00 GMT 2019


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

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Feb  7 14:40:13 2019
New Revision: 268631

URL: https://gcc.gnu.org/viewcvs?rev=268631&root=gcc&view=rev
Log:
        Backported from mainline
        2019-01-24  Jakub Jelinek  <jakub@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-8-branch/gcc/testsuite/c-c++-common/gomp/cancel-2.c
    branches/gcc-8-branch/gcc/testsuite/g++.dg/gomp/cancel-1.C
    branches/gcc-8-branch/gcc/testsuite/g++.dg/gomp/cancel-2.C
    branches/gcc-8-branch/gcc/testsuite/g++.dg/gomp/cancel-3.C
    branches/gcc-8-branch/gcc/testsuite/gcc.dg/gomp/cancel-1.c
Modified:
    branches/gcc-8-branch/gcc/cp/ChangeLog
    branches/gcc-8-branch/gcc/cp/semantics.c
    branches/gcc-8-branch/gcc/testsuite/ChangeLog


More information about the Gcc-bugs mailing list