https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92504
--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Wed Nov 20 09:52:27 2019 New Revision: 278488 URL: https://gcc.gnu.org/viewcvs?rev=278488&root=gcc&view=rev Log: Backported from mainline 2019-11-19 Jakub Jelinek <ja...@redhat.com> PR c++/92504 * semantics.c (handle_omp_for_class_iterator): Don't call cp_fully_fold on cond. * g++.dg/gomp/pr92504.C: New test. Added: branches/gcc-9-branch/gcc/testsuite/g++.dg/gomp/pr92504.C Modified: branches/gcc-9-branch/gcc/cp/ChangeLog branches/gcc-9-branch/gcc/cp/semantics.c branches/gcc-9-branch/gcc/testsuite/ChangeLog