re PR fortran/83683 (eoshift accepts wrong-length boundary)
authorThomas Koenig <tkoenig@gcc.gnu.org>
Thu, 4 Jan 2018 21:04:23 +0000 (21:04 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Thu, 4 Jan 2018 21:04:23 +0000 (21:04 +0000)
commitfbd35ba1b352baa785f7d11bafe1ae64706a2bf5
tree399b51f5eaaf929b22f26bb2d070530254d46950
parent1e678f69f7dc995a55d2cf0b4a10ffce88c0f776
re PR fortran/83683 (eoshift accepts wrong-length boundary)

2018-01-04  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/83683
PR fortran/45689
* check.c (gfc_check_eoshift): Check for string length and
for conformance of boundary.
* intrinsic.c (add_functions): Add gfc_simplify_eoshift.
* intrinsic.h: Add prototype for gfc_simplify_eoshift.
* simplify.c (gfc_simplify_eoshift): New function.

2018-01-04  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/83683
PR fortran/45689
* gfortran.dg/eoshift_8.f90: New test.
* gfortran.dg/simplify_eoshift_1.f90: New test.

From-SVN: r256265
gcc/fortran/ChangeLog
gcc/fortran/check.c
gcc/fortran/intrinsic.c
gcc/fortran/intrinsic.h
gcc/fortran/simplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/eoshift_8.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/simplify_eoshift_1.f90 [new file with mode: 0644]