]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/fortran/trans-stmt.cc
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 09:32:52 +0000 (09:32 +0000)
commit21ced2776a117924e52f6aab8b41afb613fef0e7
tree4449d2ebb5e4e9e6fc0a88f6efe7fcf1d586225b
parentf20fe2cb213dffba47ec1b62c625590b5bbe50d7
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.
gcc/fortran/trans-stmt.c
gcc/testsuite/gfortran.dg/pr99545.f90 [new file with mode: 0644]