This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/37583] ICE "insert_bbt(): Duplicate key" for self-calling ENTRY subprogram
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Sep 2008 08:18:15 -0000
- Subject: [Bug fortran/37583] ICE "insert_bbt(): Duplicate key" for self-calling ENTRY subprogram
- References: <bug-37583-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from burnus at gcc dot gnu dot org 2008-09-19 08:18 -------
Not only as actual argument also as direct procedure call, gfortran misses the
recursive call to ENTRY:
subroutine sub()
return
entry glocal()
call glocal () ! << wrong: Recursive call
end subroutine
And a simplified program to let it ICE is:
recursive subroutine sub()
call glocal () ! << \
return ! > ICE
entry glocal() ! << /
end subroutine
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37583