re PR fortran/91942 (ICE in match_vtag, at fortran/io.c:1485)
authorSteven G. Kargl <kargl@gcc.gnu.org>
Wed, 2 Oct 2019 17:04:57 +0000 (17:04 +0000)
committerSteven G. Kargl <kargl@gcc.gnu.org>
Wed, 2 Oct 2019 17:04:57 +0000 (17:04 +0000)
commit939e9f696b843f2c6472ac0fd541399e2b3faa7e
tree6bcf774400741a997958500188cbca00b1bb7529
parent8b4e5e711d9b2b979dcee445498a7f570ea49e2e
re PR fortran/91942 (ICE in match_vtag, at fortran/io.c:1485)

2019-10-02  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/91942
* io.c (match_vtag): Check for non-NULL result->symtree.
(match_out_tag): Check for invalid constant due to inquiry parameter.
(match_filepos): Instead of a syntax error, go to cleanup to get better
error messages.

2019-10-02  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/91942
* gfortran.dg/pr91587.f90: Update dg-error regex.
* gfortran.dg/pr91942.f90: New test.

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