This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
The code in the testcase died due to a run-time bounds-check generated slightly too early, leading to a crash for deferred character length. Moving the character length check after the assignment solves the issue. Regtests cleanly on x86_64-pc-linux-gnu. OK for trunk? Thanks, Harald 2019-03-10 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. 2019-03-10 Harald Anlauf <anlauf@gmx.de> PR fortran/87045 * gfortran.dg/pr87045.f90: New test.
Attachment:
patch-pr87045
Description: Text document
Attachment:
patch-pr87045-testcase
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |