re PR fortran/26551 (gfortran compiles recursive subroutines declared without the...
authorFrancois-Xavier Coudert <coudert@clipper.ens.fr>
Wed, 17 May 2006 14:11:40 +0000 (16:11 +0200)
committerFrançois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Wed, 17 May 2006 14:11:40 +0000 (14:11 +0000)
commit77f131ca20f4394c1d333fe2cc37533177238d00
tree95d49920a92d86be58e80e3f3c5df27263b61e48
parentbe448346aa660311b2cb932c082b101bc1cf504b
re PR fortran/26551 (gfortran compiles recursive subroutines declared without the RECURSIVE attribute)

PR fortran/26551

* resolve.c (resolve_call, resolve_function): Issue an error
if a function or subroutine call is recursive but the function or
subroutine wasn't declared as such.

* gfortran.dg/recursive_check_1.f: New test.

From-SVN: r113860
gcc/fortran/ChangeLog
gcc/fortran/resolve.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/recursive_check_1.f [new file with mode: 0644]