https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94348
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Tobias Burnus <bur...@gcc.gnu.org>: https://gcc.gnu.org/g:3fb7f2fbd5f109786922deb5af8fd8dd594a7ba6 commit r10-7443-g3fb7f2fbd5f109786922deb5af8fd8dd594a7ba6 Author: Tobias Burnus <tob...@codesourcery.com> Date: Sat Mar 28 14:01:57 2020 +0100 [Fortran] Fix result-variable handling of MODULE PROCEDURE (PR94348) 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.