]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: do not attempt simplification of [LU]BOUND for pointer/allocatable
authorHarald Anlauf <anlauf@gmx.de>
Tue, 23 Nov 2021 20:39:36 +0000 (21:39 +0100)
committerHarald Anlauf <anlauf@gmx.de>
Tue, 23 Nov 2021 21:02:40 +0000 (22:02 +0100)
commit16e95050f71e9fa408e9bd8ccd415b0e7adc66e5
tree681a333788af11cdfafca9e03231c6052297ec2c
parent4b1d3d8d732bea86c7b2aba46c2a437461020824
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.
gcc/fortran/simplify.c
gcc/testsuite/gfortran.dg/bound_simplification_7.f90 [new file with mode: 0644]