re PR fortran/37583 (ICE "insert_bbt(): Duplicate key" for self-calling ENTRY subprogram)
authorPaul Thomas <pault@gcc.gnu.org>
Sun, 21 Sep 2008 19:58:23 +0000 (19:58 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Sun, 21 Sep 2008 19:58:23 +0000 (19:58 +0000)
commitecd3b73c6dde9d7b61b811b3cab3ac823b63c181
treeb68949529b16170ec70aaa2df94ddaeea09ee265
parent19047e4a033c61a38aab9156e2bd49ed0e7bc3e5
re PR fortran/37583 (ICE "insert_bbt(): Duplicate key" for self-calling ENTRY subprogram)

2008-09-21  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/37583
* decl.c (scalarize_intrinsic_call): Both subroutines and
functions can give a true for get_proc_mame's last argument so
remove the &&gfc_current_ns->proc_name->attr.function.
resolve.c (resolve_actual_arglist): Add check for recursion by
reference to procedure as actual argument.

2008-09-21  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/37583
* gfortran.dg/entry_18.f90: New test.

From-SVN: r140532
gcc/fortran/ChangeLog
gcc/fortran/decl.c
gcc/fortran/resolve.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/entry_18.f90 [new file with mode: 0644]