]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR fortran/38914 ([4.3 only] ICE with array inquiry functions above contains in...
authorThomas Koenig <tkoenig@gcc.gnu.org>
Sat, 21 Feb 2009 22:25:06 +0000 (22:25 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Sat, 21 Feb 2009 22:25:06 +0000 (22:25 +0000)
commit543af7abbeb1bca017ec4cc8dcbb5fe51fa4c305
treee156f268a9631504958d59dd37561d3f6ea3612c
parent4bb09c26bc590129675100ee0a87f9408b8afab9
re PR fortran/38914 ([4.3 only] ICE with array inquiry functions above contains in parameter expression)

2008-02-21  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/38914
* array.c (ref_dimen_size):  Rename to gfc_ref_dimen_size,
make global.  Change function name in error messages.
(ref_size):  Change ref_dimen_size to gfc_ref_dimen_size.
(gfc_array_ref_shape):  Likewise.
* gfortran.h:  Add prototype for gfc_ref_dimen_size.
* simplify.c (simplify_bound_dim):  Add ref argument.
If the reference isn't a full array, return one for
the lower bound and the extent for the upper bound.
(simplify_bound):  For array sections, take as from the
argument.  Add reference to all to simplify_bound_dim.

2008-02-21  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/38914
* bound_simplification_2.f90:  New test case.
* bound_7.f90:  New test case.

From-SVN: r144362
gcc/fortran/ChangeLog
gcc/fortran/array.c
gcc/fortran/gfortran.h
gcc/fortran/simplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/bound_7.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/bound_simplification_2.f90 [new file with mode: 0644]