re PR fortran/92990 (INVALID code with NULLIFY – partially misleading error message...
authorHarald Anlauf <anlauf@gmx.de>
Sat, 21 Dec 2019 20:25:43 +0000 (20:25 +0000)
committerHarald Anlauf <anlauf@gcc.gnu.org>
Sat, 21 Dec 2019 20:25:43 +0000 (20:25 +0000)
commitb5fd86aba81ec7dbd50e588909f81771841c03bd
tree77e8c8ca0ef693c34fb279613a97e2bf87620da4
parentb1f16cae7dda8111a41bd351be63c808d593546d
re PR fortran/92990 (INVALID code with NULLIFY – partially misleading error message "If bounds remapping is specified at (1), the pointer target shall not be NULL")

2019-12-21  Harald Anlauf  <anlauf@gmx.de>

PR fortran/92990
* match.c (gfc_match_nullify): Check for valid pointer object.
Reject bounds remapping.

PR fortran/92990
* gfortran.dg/pr92990.f90: New test.

From-SVN: r279698
gcc/fortran/ChangeLog
gcc/fortran/match.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/pr92990.f90 [new file with mode: 0644]