https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100110
--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-9 branch has been updated by Harald Anlauf <anl...@gcc.gnu.org>: https://gcc.gnu.org/g:f692856517393d60f745f20306173919e18fc71a commit r9-9718-gf692856517393d60f745f20306173919e18fc71a Author: Paul Thomas <pa...@gcc.gnu.org> Date: Tue Apr 20 07:30:07 2021 +0100 Fortran: Fix host associated PDT entity initialization 2021-04-20 Paul Thomas <pa...@gcc.gnu.org> gcc/fortran PR fortran/100110 * trans-decl.c (gfc_get_symbol_decl): Replace test for host association with a check that the current and symbol namespaces are the same. gcc/testsuite/ PR fortran/100110 * gfortran.dg/pdt_31.f03: New test. * gfortran.dg/pdt_26.f03: Reduce 'builtin_malloc' count from 9 to 8. (cherry picked from commit 67378cd63d62bf0c69e966d1d202a1e586550a68)