re PR fortran/77632 ([F08] Pointer initialisation does not quite work with arrays)
authorSteven G. Kargl <kargl@gcc.gnu.org>
Thu, 20 Jun 2019 22:16:29 +0000 (22:16 +0000)
committerSteven G. Kargl <kargl@gcc.gnu.org>
Thu, 20 Jun 2019 22:16:29 +0000 (22:16 +0000)
commit2cf4aa79c811c5c658c0a66bcb70278c8fbe89ce
tree2d0d87e8c5501c2538a3175b681001dd2d5edcf4
parentc35f57c5bd2b7d3fcf04f7bb8134db43c5b31059
re PR fortran/77632 ([F08] Pointer initialisation does not quite work with arrays)

2019-06-20  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/77632
* /decl.c (variable_decl): Mark a variable that is a target in pointer
initialization when in PROGRAM, MODULE, or SUBMODULE scope with an
implicit save.

2019-06-20  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/77632
* gfortran.dg/pr77632_1.f90: New test.

From-SVN: r272526
gcc/fortran/ChangeLog
gcc/fortran/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/pr77632_1.f90 [new file with mode: 0644]