PR fortran/29391
authorfxcoudert <fxcoudert@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 16 Nov 2006 12:25:11 +0000 (12:25 +0000)
committerfxcoudert <fxcoudert@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 16 Nov 2006 12:25:11 +0000 (12:25 +0000)
commit09d71cee78799c35fd9653a8e6202fc27abf674a
treef14cc63483c17ad4c8e486eae4a98c3d88d24e41
parent21ebda4d56b1d9cdd03c7bb12a992e99808960a6
PR fortran/29391
PR fortran/29489

* simplify.c (simplify_bound): Fix the simplification of
LBOUND/UBOUND intrinsics.
* trans-intrinsic.c (simplify_bound): Fix the logic, and
remove an erroneous assert.

* gcc/testsuite/gfortran.dg/bound_2.f90: Add more checks.
* gcc/testsuite/gfortran.dg/bound_3.f90: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@118888 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/fortran/ChangeLog
gcc/fortran/simplify.c
gcc/fortran/trans-intrinsic.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/bound_2.f90