]> gcc.gnu.org Git - gcc.git/commit
Fortran: Fix problem with allocate initialization [PR99545].
authorPaul Thomas <pault@gcc.gnu.org>
Mon, 15 Mar 2021 09:32:52 +0000 (09:32 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Mon, 15 Mar 2021 11:10:41 +0000 (11:10 +0000)
commitb4f86a21263b8e731de68a78862e5c480ef3d160
tree814db4176c5364f0e6a3c6cdf319c0c58b6bcdbb
parent4b1d5fe71219952a2243a8f9de66ae73632c3683
Fortran: Fix problem with allocate initialization [PR99545].

2021-03-15  Paul Thomas  <pault@gcc.gnu.org>

gcc/fortran/ChangeLog

PR fortran/99545
* trans-stmt.c (gfc_trans_allocate): Mark the initialization
assignment by setting init_flag.

gcc/testsuite/ChangeLog

PR fortran/99545
* gfortran.dg/pr99545.f90: New test.

(cherry picked from commit 21ced2776a117924e52f6aab8b41afb613fef0e7)
gcc/fortran/trans-stmt.c
gcc/testsuite/gfortran.dg/pr99545.f90 [new file with mode: 0644]
This page took 0.06864 seconds and 5 git commands to generate.