https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94348
--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-9 branch has been updated by Tobias Burnus <bur...@gcc.gnu.org>: https://gcc.gnu.org/g:79166bd28d0296a510cc65aa21cd6797eba51144 commit r9-8423-g79166bd28d0296a510cc65aa21cd6797eba51144 Author: Tobias Burnus <tob...@codesourcery.com> Date: Mon Mar 30 09:23:12 2020 +0200 [Fortran] Fix result-variable handling of MODULE PROCEDURE (PR94348) Backport from mainline 2020-03-28 Tobias Burnus <tob...@codesourcery.com> PR fortran/94348 * decl.c (gfc_match_submod_proc): Add result var to the proc's namespace. PR fortran/94348 * gfortran.dg/module_procedure_3.f90: New.