https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103392
--- Comment #9 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-9 branch has been updated by Harald Anlauf <anl...@gcc.gnu.org>: https://gcc.gnu.org/g:dd1871c823e2ec9a500ac5ad3c87a117b934fa3b commit r9-9846-gdd1871c823e2ec9a500ac5ad3c87a117b934fa3b 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)