re PR fortran/91359 (logical function X returns .TRUE. - Warning: spaghetti code)
authorSteven G. Kargl <kargl@gcc.gnu.org>
Tue, 6 Aug 2019 21:32:09 +0000 (21:32 +0000)
committerSteven G. Kargl <kargl@gcc.gnu.org>
Tue, 6 Aug 2019 21:32:09 +0000 (21:32 +0000)
commite0af8f52b10385d859d60a4ee6b89d274e4044bb
tree738a20ebf9f668b479b13bf5bb6d736c7435316c
parent1a3920654f92b83a206d62f4eddcf1f5c28a91de
re PR fortran/91359 (logical function X returns .TRUE. - Warning:  spaghetti code)

2019-08-06  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/91359
* trans-decl.c (gfc_generate_return): Ensure something is returned
from a function.

2019-08-06  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/91359
* gfortran.dg/pr91359_1.f: New test.
* gfortran.dg/pr91359_2.f: Ditto.

From-SVN: r274149
gcc/fortran/ChangeLog
gcc/fortran/trans-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/pr91359_1.f [new file with mode: 0644]
gcc/testsuite/gfortran.dg/pr91359_2.f [new file with mode: 0644]