]> git.ipfire.org Git - thirdparty/gcc.git/commit
[Fortran] Fix result-variable handling of MODULE PROCEDURE (PR94348)
authorTobias Burnus <tobias@codesourcery.com>
Sat, 28 Mar 2020 13:01:57 +0000 (14:01 +0100)
committerTobias Burnus <tobias@codesourcery.com>
Sat, 28 Mar 2020 13:01:57 +0000 (14:01 +0100)
commit3fb7f2fbd5f109786922deb5af8fd8dd594a7ba6
tree1de04be18996b7af821d5b5d29dd86d0d484cac0
parent7981c06ae92548bd66f07121db1802eb6aec73ed
[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.
gcc/fortran/ChangeLog
gcc/fortran/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/module_procedure_3.f90 [new file with mode: 0644]