Fortran: error recovery on invalid assumed size reference [PR104554]
authorSteve Kargl <kargl@gcc.gnu.org>
Wed, 15 Feb 2023 21:20:22 +0000 (22:20 +0100)
committerHarald Anlauf <anlauf@gmx.de>
Wed, 15 Feb 2023 21:22:14 +0000 (22:22 +0100)
commita418129273725fd02e881e6fb5e0877287a1356c
treeab3740d26929ddd0bc86a353474825385468408a
parenta3e499430f1cc8a8f4aea3c26d4aba2d5eaba742
Fortran: error recovery on invalid assumed size reference [PR104554]

gcc/fortran/ChangeLog:

PR fortran/104554
* resolve.cc (check_assumed_size_reference): Avoid NULL pointer
dereference.

gcc/testsuite/ChangeLog:

PR fortran/104554
* gfortran.dg/pr104554.f90: New test.
gcc/fortran/resolve.cc
gcc/testsuite/gfortran.dg/pr104554.f90 [new file with mode: 0644]