public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "burnus at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/39577]  New: False positive with -fcheck=recursion
Date: Sun, 29 Mar 2009 11:04:00 -0000	[thread overview]
Message-ID: <bug-39577-13404@http.gcc.gnu.org/bugzilla/> (raw)

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


             reply	other threads:[~2009-03-29 11:04 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-29 11:04 burnus at gcc dot gnu dot org [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-39577-13404@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).