public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/39577]  New: False positive with -fcheck=recursion
@ 2009-03-29 11:04 burnus at gcc dot gnu dot org
  2009-03-29 11:21 ` [Bug fortran/39577] " dominiq at lps dot ens dot fr
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: burnus at gcc dot gnu dot org @ 2009-03-29 11:04 UTC (permalink / raw)
  To: gcc-bugs

The following program is valid but with -fcheck=recursion the following error
is shown:

At line 1 of file aa.f90
Fortran runtime error: Recursive call to nonrecursive procedure 'test'

There might be more such cases if one digs (entry? some strange label returns
of F77? ...). But we might be lucky and everything is fixed at one place.

Dump:
  goto __return_test;
  __return_test:;
  return __result_test;
  is_recursive.0 = 0;


integer function test()
  test = 5
  return
  ! not reachable
end function test

program main
integer :: a
a = test()
a = test()
end program main


-- 
           Summary: False positive with -fcheck=recursion
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: burnus at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39577


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-04-04 21:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-29 11:04 [Bug fortran/39577] New: False positive with -fcheck=recursion burnus at gcc dot gnu dot org
2009-03-29 11:21 ` [Bug fortran/39577] " dominiq at lps dot ens dot fr
2009-03-29 19:20 ` burnus at gcc dot gnu dot org
2009-03-30 20:35 ` burnus at gcc dot gnu dot org
2009-04-04 21:38 ` burnus at gcc dot gnu dot org
2009-04-04 21:46 ` burnus at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).