re PR fortran/18899 ([gfortran] ubound wrongly calculated for passed array)
authorRichard Sandiford <richard@codesourcery.com>
Tue, 13 Sep 2005 08:07:15 +0000 (08:07 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Tue, 13 Sep 2005 08:07:15 +0000 (08:07 +0000)
commit4fd9a81345882be70ae24604eb98d3db9ec9f321
tree4ffb56101370a9ad4a80a7d08f8ff17f9bffa6b7
parentd7f0e25cd0e994e9f95e7709e0d6c6df587463a6
re PR fortran/18899 ([gfortran] ubound wrongly calculated for passed array)

PR fortran/18899
* trans-intrinsic.c (gfc_conv_intrinsic_bound): Move initialization
of argse.  Remove now-redundant want_pointer assignment.
* trans-array.c (gfc_conv_expr_descriptor): When not assigning to
a pointer, keep the original bounds of a full array reference.

From-SVN: r104219
gcc/fortran/ChangeLog
gcc/fortran/trans-array.c
gcc/fortran/trans-intrinsic.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/shape_2.f90 [new file with mode: 0644]