Fortran: Fix ubound simplifcation [PR99027]
authorTobias Burnus <tobias@codesourcery.com>
Fri, 19 Feb 2021 09:42:15 +0000 (10:42 +0100)
committerTobias Burnus <tobias@codesourcery.com>
Fri, 19 Feb 2021 09:42:15 +0000 (10:42 +0100)
commitf600f271b10d0214b111f2aa52a3d5740477e139
tree810888630a9f38f4684a76dba90c74deea810dd8
parent6070e39cd0af6ac4a88004c8b1b6a900a8bbce36
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.
gcc/fortran/simplify.c
gcc/testsuite/gfortran.dg/ubound_1.f90 [new file with mode: 0644]