]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: Fix default type bugs in gfortran [PR99139, PR99368]
authorPaul Thomas <pault@gcc.gnu.org>
Sat, 8 Jul 2023 17:13:23 +0000 (18:13 +0100)
committerPaul Thomas <pault@gcc.gnu.org>
Sat, 8 Jul 2023 17:13:23 +0000 (18:13 +0100)
commit9a2eab6172a8067e2f63e0fa2bcd5b2190656303
treeaea3fbe89fd4abc3fc5a3b33b3871bbfb7282e91
parent15bbf1826a01f5beb2d7c0f74d6270bbc94ece91
Fortran: Fix default type bugs in gfortran [PR99139, PR99368]

2023-07-08  Steve Kargl  <sgk@troutmask.apl.washington.edu>

gcc/fortran
PR fortran/99139
PR fortran/99368
* match.cc (gfc_match_namelist): Check for host associated or
defined types before applying default type.
(gfc_match_select_rank): Apply default type to selector of
unknown type if possible.
* resolve.cc (resolve_fl_variable): Do not apply local default
initialization to assumed rank entities.

gcc/testsuite/
PR fortran/99139
* gfortran.dg/pr99139.f90 : New test

PR fortran/99368
* gfortran.dg/pr99368.f90 : New test
gcc/fortran/match.cc
gcc/fortran/resolve.cc
gcc/testsuite/gfortran.dg/pr99139.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/pr99368.f90 [new file with mode: 0644]