https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103606
--- Comment #8 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:12d811d06f2ea178ac9b40c5399ba41eb5f374df commit r9-9873-g12d811d06f2ea178ac9b40c5399ba41eb5f374df Author: Harald Anlauf <anl...@gmx.de> Date: Fri Dec 10 22:41:24 2021 +0100 Fortran: fix checking of elemental functions of type CLASS gcc/fortran/ChangeLog: PR fortran/103606 * resolve.c (resolve_fl_procedure): Do not access CLASS components before class container has been built. gcc/testsuite/ChangeLog: PR fortran/103606 * gfortran.dg/pr103606.f90: New test. (cherry picked from commit 7e913caad081ea85da4f257265f2d3383cdbe8d5)