PR fortran/88379 - ICE with allocatable coarray, class and associate
authorHarald Anlauf <anlauf@gmx.de>
Tue, 30 Jun 2020 21:36:56 +0000 (23:36 +0200)
committerHarald Anlauf <anlauf@gmx.de>
Tue, 30 Jun 2020 21:36:56 +0000 (23:36 +0200)
commit267f84c6035c9380c8d1e9cb83ffe299c23e3a85
tree68813cc841b880cc6da23ce35e74111b05ac6a06
parent31427b974ed7b7dd54e28fec595e731bf6eea8ba
PR fortran/88379 - ICE with allocatable coarray, class and associate

Catch NULL pointer dereference for ASSOCIATE on allocatable coarray variable.

gcc/fortran/
PR fortran/88379
* resolve.c (resolve_assoc_var): Avoid NULL pointer dereference.
gcc/fortran/resolve.c
gcc/testsuite/gfortran.dg/pr88379.f90 [new file with mode: 0644]