public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/95709] New: [9/10/11 Regression] ICE in gfc_resolve_code, at fortran/resolve.c:11807
@ 2020-06-16 18:53 gscfq@t-online.de
  2020-06-17  6:24 ` [Bug fortran/95709] " rguenth at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: gscfq@t-online.de @ 2020-06-16 18:53 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95709

            Bug ID: 95709
           Summary: [9/10/11 Regression] ICE in gfc_resolve_code, at
                    fortran/resolve.c:11807
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gscfq@t-online.de
  Target Milestone: ---

Affects versions down to r8 (before 20180525), r7 rejects it :


$ cat z1.f90
program p
   integer, parameter :: i(1) = 1
   goto i(1)
 1 continue
end


$ cat z2.f90
program p
   integer, parameter :: i(0) = 0
   goto i(1)
end


$ cat z3.f90
program p
   integer, parameter :: i(0) = 0
   goto i(0)
   goto i(1)
   goto i(-1)
   goto i(i(0))
end


$ cat z4.f90
program p
   integer, parameter :: i(0) = 0
   integer :: j
   goto i%kind
   goto j%kind
   goto j%kind, (1)
end


$ gfortran-11-20200614 -c z1.f90
z1.f90:3:12:

    3 |    goto i(1)
      |            1
Warning: Deleted feature: Assigned GOTO statement at (1)
f951: internal compiler error: Segmentation fault
0xbcdd2f crash_signal
        ../../gcc/toplev.c:328
0x6c9c8c gfc_resolve_code(gfc_code*, gfc_namespace*)
        ../../gcc/fortran/resolve.c:11807
0x6cc0e7 resolve_codes
        ../../gcc/fortran/resolve.c:17257
0x6cc1ae gfc_resolve(gfc_namespace*)
        ../../gcc/fortran/resolve.c:17292
0x6b42ec resolve_all_program_units
        ../../gcc/fortran/parse.c:6245
0x6b42ec gfc_parse_file()
        ../../gcc/fortran/parse.c:6492
0x70036f gfc_be_parse_file
        ../../gcc/fortran/f95-lang.c:212

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

end of thread, other threads:[~2020-07-08 18:44 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-16 18:53 [Bug fortran/95709] New: [9/10/11 Regression] ICE in gfc_resolve_code, at fortran/resolve.c:11807 gscfq@t-online.de
2020-06-17  6:24 ` [Bug fortran/95709] " rguenth at gcc dot gnu.org
2020-06-17 12:59 ` dominiq at lps dot ens.fr
2020-06-17 17:33 ` kargl at gcc dot gnu.org
2020-07-02 20:42 ` anlauf at gcc dot gnu.org
2020-07-06 16:53 ` cvs-commit at gcc dot gnu.org
2020-07-08 18:33 ` cvs-commit at gcc dot gnu.org
2020-07-08 18:42 ` cvs-commit at gcc dot gnu.org
2020-07-08 18:44 ` anlauf 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).