https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99027
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Tobias Burnus <bur...@gcc.gnu.org>: https://gcc.gnu.org/g:f600f271b10d0214b111f2aa52a3d5740477e139 commit r11-7292-gf600f271b10d0214b111f2aa52a3d5740477e139 Author: Tobias Burnus <tob...@codesourcery.com> Date: Fri Feb 19 10:42:15 2021 +0100 Fortran: Fix ubound simplifcation [PR99027] gcc/fortran/ChangeLog: PR fortran/99027 * simplify.c (simplify_bound_dim): Honor DIMEN_ELEMENT when using dim=. gcc/testsuite/ChangeLog: PR fortran/99027 * gfortran.dg/ubound_1.f90: New test.