https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104313
--- Comment #9 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Harald Anlauf <anl...@gcc.gnu.org>: https://gcc.gnu.org/g:517fb1a78102df43f052c6934c27dd51d786aff7 commit r13-1715-g517fb1a78102df43f052c6934c27dd51d786aff7 Author: Steve Kargl <ka...@gcc.gnu.org> Date: Fri Jul 15 22:07:15 2022 +0200 Fortran: do not generate conflicting results under -ff2c [PR104313] gcc/fortran/ChangeLog: PR fortran/104313 * trans-decl.cc (gfc_generate_return): Do not generate conflicting fake results for functions with no result variable under -ff2c. gcc/testsuite/ChangeLog: PR fortran/104313 * gfortran.dg/pr104313.f: New test.