https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100965
--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-11 branch has been updated by Jakub Jelinek <ja...@gcc.gnu.org>: https://gcc.gnu.org/g:1f94733aea11b6e729dcb8c5824239af7e2a690b commit r11-8591-g1f94733aea11b6e729dcb8c5824239af7e2a690b Author: Jakub Jelinek <ja...@redhat.com> Date: Wed Jun 9 10:48:41 2021 +0200 openmp: Gimplify OMP_CLAUSE_SIZE during gfc_omp_finish_clause [PR100965] As the testcase shows, we need to gimplify OMP_CLAUSE_SIZE, so that we don't end up with SAVE_EXPR or anything similar non-gimple in it. 2021-06-08 Jakub Jelinek <ja...@redhat.com> PR fortran/100965 * trans-openmp.c (gfc_omp_finish_clause): Gimplify OMP_CLAUSE_SIZE. * gfortran.dg/gomp/pr100965.f90: New test. (cherry picked from commit d4d38135b3137f1d3148138340e67bdcd7ea8216)