https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94246
--- Comment #13 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-9 branch has been updated by Paul Thomas <pa...@gcc.gnu.org>: https://gcc.gnu.org/g:f448af69b208ba95496748c4596a22d11b1a09b9 commit r9-9148-gf448af69b208ba95496748c4596a22d11b1a09b9 Author: Paul Thomas <pa...@gcc.gnu.org> Date: Mon Jan 4 08:15:18 2021 +0000 Fortran: Fix scalarization of constant expressions. [PR94246]. 2021-01-04 Paul Thomas <pa...@gcc.gnu.org> gcc/fortran PR fortran/94246 * expr.c (scalarize_intrinsic_call): Remove the error checking. Make a copy of the expression to be simplified and only replace the original if the simplification succeeds. gcc/testsuite/ PR fortran/94246 * gfortran.dg/bessel_5_redux.f90 : New test.