This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/37583] ICE "insert_bbt(): Duplicate key" for self-calling ENTRY subprogram



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]