https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99368
--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Paul Thomas <pa...@gcc.gnu.org>: https://gcc.gnu.org/g:9a2eab6172a8067e2f63e0fa2bcd5b2190656303 commit r14-2397-g9a2eab6172a8067e2f63e0fa2bcd5b2190656303 Author: Paul Thomas <pa...@gcc.gnu.org> Date: Sat Jul 8 18:13:23 2023 +0100 Fortran: Fix default type bugs in gfortran [PR99139, PR99368] 2023-07-08 Steve Kargl <s...@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