https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102458
--- Comment #15 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-11 branch has been updated by Harald Anlauf <anl...@gcc.gnu.org>: https://gcc.gnu.org/g:082b3588ee01399b93fe73acd2ac181ec2ee3536 commit r11-9064-g082b3588ee01399b93fe73acd2ac181ec2ee3536 Author: Harald Anlauf <anl...@gmx.de> Date: Fri Sep 24 19:10:15 2021 +0200 Fortran - improve checking for intrinsics allowed in constant expressions gcc/fortran/ChangeLog: PR fortran/102458 * expr.c (is_non_constant_intrinsic): Check for intrinsics excluded in constant expressions (F2018:10.1.12). (gfc_is_constant_expr): Use that check. gcc/testsuite/ChangeLog: PR fortran/102458 * gfortran.dg/pr102458.f90: New test. (cherry picked from commit 84cccff60a978174271a30042bf7841d2ae436eb)