public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/41909]  New: [4.4/4.5 Regression] ICE with "call foo" in "program foo"
@ 2009-11-02 17:57 burnus at gcc dot gnu dot org
  2009-11-02 17:57 ` [Bug fortran/41909] " burnus at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: burnus at gcc dot gnu dot org @ 2009-11-02 17:57 UTC (permalink / raw)
  To: gcc-bugs

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


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

end of thread, other threads:[~2009-11-07  4:35 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-02 17:57 [Bug fortran/41909] New: [4.4/4.5 Regression] ICE with "call foo" in "program foo" burnus at gcc dot gnu dot org
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

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