re PR fortran/84640 (gcc/fortran/simplify.c:2587:9: runtime error: pointer index...
authorThomas Koenig <tkoenig@gcc.gnu.org>
Sat, 6 Oct 2018 11:45:05 +0000 (11:45 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Sat, 6 Oct 2018 11:45:05 +0000 (11:45 +0000)
commitf64b9ed94ccf6ee21b769a7213def41918d793a1
tree3d0da4751f218c71c5f5f1f5bbcc3805ebdfc9f5
parenta141f2d86293dc202e35bd4d7f832756e1792cdf
re PR fortran/84640 (gcc/fortran/simplify.c:2587:9: runtime error: pointer index expression with base 0x0000090de160 overflowed to 0xffffffffc0632960)

 2018-10-06  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/84640
* simplify.c (gfc_simplify_cshift): Extend size of hs_ex and ss_ex
by one. Set extents one past the array boundaries to zero to avoid
warning with instrumented compiler.
(gfc_simplify_eoshift): Likewise, only for ss_ex.

From-SVN: r264898
gcc/fortran/ChangeLog
gcc/fortran/simplify.c