re PR fortran/29391 ([4.2/4.1 only] LBOUND and UBOUND are broken)
authorFrancois-Xavier Coudert <coudert@clipper.ens.fr>
Thu, 16 Nov 2006 12:25:11 +0000 (13:25 +0100)
committerFrançois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Thu, 16 Nov 2006 12:25:11 +0000 (12:25 +0000)
commit9f1dce5609ca54d2caa87d0ecfece64a7bb58c81
treef14cc63483c17ad4c8e486eae4a98c3d88d24e41
parent6c0e51c4fad90d1a93040fe92695890b5715d6f5
re PR fortran/29391 ([4.2/4.1 only] LBOUND and UBOUND are broken)

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.

From-SVN: r118888
gcc/fortran/ChangeLog
gcc/fortran/simplify.c
gcc/fortran/trans-intrinsic.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/bound_2.f90