For assumed-size arrays check if the reference is to a full array.
authorJose Rui Faustino de Sousa <jrfsousa@gmail.com>
Wed, 22 Apr 2020 16:20:26 +0000 (18:20 +0200)
committerThomas König <tkoenig@gcc.gnu.org>
Wed, 22 Apr 2020 16:20:26 +0000 (18:20 +0200)
commit808a6eadda1a353ce3a70556feac128580491b24
tree0625b3c4972f2ee041039fc19c22144e91c20998
parent183e9006cc0300257d6f74d573514ef86f78cb4e
For assumed-size arrays check if the reference is to a full array.

2020-04-22  José Rui Faustino de Sousa  <jrfsousa@gmail.com>

PR fortran/90350
* simplify.c (simplify_bound): In the case of assumed-size arrays
check if the reference is to a full array.

2020-04-22  José Rui Faustino de Sousa  <jrfsousa@gmail.com>

PR fortran/90350
* gfortran.dg/PR90350.f90: New test.
gcc/fortran/ChangeLog
gcc/fortran/simplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/PR90350.f90 [new file with mode: 0644]