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 <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-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