https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81768
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Thu Sep 7 20:40:06 2017 New Revision: 251856 URL: https://gcc.gnu.org/viewcvs?rev=251856&root=gcc&view=rev Log: Backported from mainline 2017-09-05 Jakub Jelinek <ja...@redhat.com> PR middle-end/81768 * omp-expand.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-7-branch/gcc/testsuite/gcc.dg/gomp/pr81768-1.c Modified: branches/gcc-7-branch/gcc/ChangeLog branches/gcc-7-branch/gcc/omp-expand.c branches/gcc-7-branch/gcc/testsuite/ChangeLog