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/41909]  New: [4.4/4.5 Regression] ICE with "call foo" in "program foo"
Date: Mon, 02 Nov 2009 17:57:00 -0000	[thread overview]
Message-ID: <bug-41909-13404@http.gcc.gnu.org/bugzilla/> (raw)

program test
  implicit none
  call test()
contains
  subroutine one(a)
    real, dimension(:,:), intent(inout), optional :: a
    call two(a)
  end subroutine one
end program test



With 4.5:
  f951: internal compiler error: in is_illegal_recursion,
        at fortran/resolve.c:1120



With 4.4:

hfjffff.f90:3.13:

  call test()
             1
hfjffff.f90:1.12:

program test
            2
Error: Global name 'test' at (1) is already being used as a PROGRAM at (2)
f951: internal compiler error: in is_illegal_recursion, at
fortran/resolve.c:1103



With 4.3:

hfjffff.f90:3.13:

  call test()
             1
hfjffff.f90:1.12:

program test
            2
Error: Global name 'test' at (1) is already being used as a PROGRAM at (2)
hfjffff.f90:3.13:

  call test()
             1
Error: SUBROUTINE 'test' at (1) cannot call itself, as it is not RECURSIVE



With 4.2:

hfjffff.f90:3.11:

  call test()
          1
Error: PROGRAM attribute conflicts with PROCEDURE attribute at (1)


-- 
           Summary: [4.4/4.5 Regression] ICE with "call foo" in "program
                    foo"
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code
          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=41909


             reply	other threads:[~2009-11-02 17:57 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-02 17:57 burnus at gcc dot gnu dot org [this message]
2009-11-02 17:57 ` [Bug fortran/41909] " burnus at gcc dot gnu dot org
2009-11-06  3:21 ` jvdelisle at gcc dot gnu dot org
2009-11-07  2:35 ` jvdelisle at gcc dot gnu dot org
2009-11-07  4:31 ` jvdelisle at gcc dot gnu dot org
2009-11-07  4:33 ` jvdelisle at gcc dot gnu dot org
2009-11-07  4:35 ` jvdelisle 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-41909-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).