public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/48776] New: ICE(segfault) after -std=f95 diagnostic error involving PROCEDURE
@ 2011-04-26 18:46 burnus at gcc dot gnu.org
  2013-06-16 13:13 ` [Bug fortran/48776] " dominiq at lps dot ens.fr
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: burnus at gcc dot gnu.org @ 2011-04-26 18:46 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: ICE(segfault) after -std=f95 diagnostic error
                    involving PROCEDURE
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Keywords: error-recovery, ice-on-invalid-code
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: burnus@gcc.gnu.org


Follow up to bug 48279 comment 7 and 48279 comment 11.

The following program segfaults with -std=f95 after printing the diagnostic:

    procedure get1
                  1
Error: Fortran 2003: PROCEDURE statement at (1)
f951: internal compiler error: Segmentation fault


Valgrind shows tons of errors, starting with:

==22545== Invalid read of size 8
==22545==    at 0x52FD8C: resolve_symbol (resolve.c:10004)
==22545==    by 0x54BA76: traverse_ns (symbol.c:3379)
==22545==    by 0x53919B: resolve_types (resolve.c:13261)
==22545==    by 0x52E3D3: gfc_resolve (resolve.c:13357)

The testcase:

  interface get
    procedure get1
  end interface

  integer :: h
  call set1 (get (h))
contains
  subroutine set1 (a)
    integer, intent(in) :: a
  end subroutine

  integer function get1 (s)
    integer :: s
  end function
end


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

end of thread, other threads:[~2024-01-20 15:50 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-26 18:46 [Bug fortran/48776] New: ICE(segfault) after -std=f95 diagnostic error involving PROCEDURE burnus at gcc dot gnu.org
2013-06-16 13:13 ` [Bug fortran/48776] " dominiq at lps dot ens.fr
2023-08-26 18:29 ` mikael at gcc dot gnu.org
2023-08-26 18:30 ` mikael at gcc dot gnu.org
2023-08-26 19:47 ` mikael at gcc dot gnu.org
2023-08-30 12:20 ` cvs-commit at gcc dot gnu.org
2023-08-30 19:38 ` mikael at gcc dot gnu.org
2023-08-30 19:39 ` mikael at gcc dot gnu.org
2024-01-20 15:50 ` cvs-commit at gcc dot gnu.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).