Fortran: avoid NULL pointer dereference checking elemental procedure args
authorHarald Anlauf <anlauf@gmx.de>
Tue, 29 Mar 2022 20:12:15 +0000 (22:12 +0200)
committerHarald Anlauf <anlauf@gmx.de>
Tue, 29 Mar 2022 20:12:15 +0000 (22:12 +0200)
commit69db6e7f4e1d07bf8f33e93a29139cc16c1e0a2f
tree4504994de43298c72445021d9de0ed3f3dbe3f21
parenteb59ddf57fbc4bf1d2deaf0665ede4aa37181069
Fortran: avoid NULL pointer dereference checking elemental procedure args

gcc/fortran/ChangeLog:

PR fortran/104571
* resolve.cc (resolve_elemental_actual): Avoid NULL pointer
dereference.

gcc/testsuite/ChangeLog:

PR fortran/104571
* gfortran.dg/pr104571.f90: New test.

Co-authored-by: Steven G. Kargl <kargl@gcc.gnu.org>
gcc/fortran/resolve.cc
gcc/testsuite/gfortran.dg/pr104571.f90 [new file with mode: 0644]