diff options
author | Paul Thomas <pault@gcc.gnu.org> | 2007-06-24 11:04:02 +0000 |
---|---|---|
committer | Paul Thomas <pault@gcc.gnu.org> | 2007-06-24 11:04:02 +0000 |
commit | f0b3c58d8be622e7305c7d503a5d81b96b1db621 (patch) | |
tree | 16520c1ec2271712b293e5a3adfbf883bb1af809 /gcc/fortran/dump-parse-tree.c | |
parent | dbb233964c4801a60b3a17c5213317efff9f93d6 (diff) | |
download | gcc-f0b3c58d8be622e7305c7d503a5d81b96b1db621.zip gcc-f0b3c58d8be622e7305c7d503a5d81b96b1db621.tar.gz gcc-f0b3c58d8be622e7305c7d503a5d81b96b1db621.tar.bz2 |
re PR fortran/32298 (MINLOC / MAXLOC: off-by one for PARAMETER arrays)
2007-06-24 Paul Thomas <pault@gcc.gnu.org>
PR fortran/32298
PR fortran/31726
* trans-intrinsic.c (gfc_conv_intrinsic_minmaxloc): Calculate
the offset between the loop counter and the position as
defined. Add the offset within the loop so that the mask acts
correctly. Do not advance the location on the basis that it
is zero.
2007-06-24 Paul Thomas <pault@gcc.gnu.org>
PR fortran/31726
* gfortran.dg/minmaxloc_1.f90: New test.
PR fortran/32298
* gfortran.dg/minmaxloc_2.f90: New test.
From-SVN: r125983
Diffstat (limited to 'gcc/fortran/dump-parse-tree.c')
0 files changed, 0 insertions, 0 deletions