re PR fortran/87045 (pointer to array of character)
authorHarald Anlauf <anlauf@gmx.de>
Wed, 13 Mar 2019 21:33:27 +0000 (21:33 +0000)
committerHarald Anlauf <anlauf@gcc.gnu.org>
Wed, 13 Mar 2019 21:33:27 +0000 (21:33 +0000)
commitedaff7c9448c4e4bdc4e4a42f5813ee543a1df31
tree63e431971014e2cb9e412402010f1b4ec6e604f1
parent1e05d1854cd6d63cda5828c50735d029ce198ff2
re PR fortran/87045 (pointer to array of character)

2019-03-13  Harald Anlauf  <anlauf@gmx.de>

PR fortran/87045
* trans-expr.c (gfc_trans_pointer_assignment): Move check for same
string length so that we do not get false errors for deferred
length.

PR fortran/87045
* gfortran.dg/pr87045.f90: New test.

From-SVN: r269664
gcc/fortran/ChangeLog
gcc/fortran/trans-expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/pr87045.f90 [new file with mode: 0644]