https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81768
--- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Fri Sep 15 21:38:43 2017 New Revision: 252860 URL: https://gcc.gnu.org/viewcvs?rev=252860&root=gcc&view=rev Log: Backported from mainline 2017-09-05 Jakub Jelinek <ja...@redhat.com> PR middle-end/81768 * omp-low.c (expand_omp_simd): Force second operands of COND_EXPR into gimple val before gimplification fo the COND_EXPR. * gcc.dg/gomp/pr81768-1.c: New test. Added: branches/gcc-6-branch/gcc/testsuite/gcc.dg/gomp/pr81768-1.c Modified: branches/gcc-6-branch/gcc/ChangeLog branches/gcc-6-branch/gcc/omp-low.c branches/gcc-6-branch/gcc/testsuite/ChangeLog