https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103392
--- Comment #8 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-10 branch has been updated by Harald Anlauf <anl...@gcc.gnu.org>: https://gcc.gnu.org/g:376b2c781d11f55644e92dfea91c3f214f20f4ac commit r10-10311-g376b2c781d11f55644e92dfea91c3f214f20f4ac Author: Harald Anlauf <anl...@gmx.de> Date: Tue Nov 23 21:39:36 2021 +0100 Fortran: do not attempt simplification of [LU]BOUND for pointer/allocatable gcc/fortran/ChangeLog: PR fortran/103392 * simplify.c (simplify_bound): Do not try to simplify LBOUND/UBOUND for arrays with POINTER or ALLOCATABLE attribute. gcc/testsuite/ChangeLog: PR fortran/103392 * gfortran.dg/bound_simplification_7.f90: New test. (cherry picked from commit 16e95050f71e9fa408e9bd8ccd415b0e7adc66e5)