re PR fortran/88328 (ICE in resolve_tag_format, at fortran/io.c:1641)
authorSteven G. Kargl <kargl@gcc.gnu.org>
Sun, 23 Dec 2018 05:18:27 +0000 (05:18 +0000)
committerSteven G. Kargl <kargl@gcc.gnu.org>
Sun, 23 Dec 2018 05:18:27 +0000 (05:18 +0000)
commit0652a1512130cfda8a7ffb192f47bf19c9be2525
treec8b9de71d19f18e386c81abe1751e200bfdcd8f9
parente2385f4e812bd9f0172e8c28c50c3a51a6fcbcb8
re PR fortran/88328 (ICE in resolve_tag_format, at fortran/io.c:1641)

2018-12-22  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/88328
* io.c (resolve_tag_format): Add error for zero-sized array.
(gfc_resolve_dt): Manipulate gfc_current_locus to get sensible error
message locus.

2018-12-22  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/88328
* gfortran.dg/pr88328.f90: New test.

From-SVN: r267367
gcc/fortran/ChangeLog
gcc/fortran/io.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/pr88328.f90 [new file with mode: 0644]