re PR fortran/70853 (ICE on pointing to null, in gfc_add_block_to_block, at fortran...
authorHarald Anlauf <anlauf@gmx.de>
Wed, 18 Dec 2019 16:34:06 +0000 (16:34 +0000)
committerHarald Anlauf <anlauf@gcc.gnu.org>
Wed, 18 Dec 2019 16:34:06 +0000 (16:34 +0000)
commit6573d760cdfec1b4577b268ce1ff19cecc4c9cbd
treef124dd019a09cfeeb03d29ba89a3711808104e9d
parente986ce3bd611f3887b4aa9fe1505436970478711
re PR fortran/70853 (ICE on pointing to null, in gfc_add_block_to_block, at fortran/trans.c:1599)

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

PR fortran/70853
* trans-expr.c (gfc_trans_pointer_assignment): Reject bounds
remapping if pointer target is NULL().

PR fortran/70853
* gfortran.dg/pr70853.f90: New test.

From-SVN: r279527
gcc/fortran/ChangeLog
gcc/fortran/trans-expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/pr70853.f90 [new file with mode: 0644]