public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/103717] New: ICE in doloop_code, at fortran/frontend-passes.c:2656
@ 2021-12-14 18:12 gscfq@t-online.de
  2021-12-14 20:13 ` [Bug fortran/103717] " anlauf at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: gscfq@t-online.de @ 2021-12-14 18:12 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 103717
           Summary: ICE in doloop_code, at fortran/frontend-passes.c:2656
           Product: gcc
           Version: 12.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 at least r5 :
(gcc configured with --enable-checking=yes)


$ cat z1.f90
program p
   integer :: i
   do i = 1, 2
      call s(i)
   end do
contains
   subroutine s(*)
   end
end


$ cat z2.f90
recursive subroutine s(*)
   integer :: i
   do i = 1, 2
      call s(i)
   end do
end


$ gfortran-12-20211212 -c z1.f90
z1.f90:4:15:

    4 |       call s(i)
      |               1
Error: Missing alternate return specifier in subroutine call at (1)
f951: internal compiler error: Segmentation fault
0xf12d1f crash_signal
        ../../gcc/toplev.c:322
0x957d0e doloop_code
        ../../gcc/fortran/frontend-passes.c:2656
0x955909 gfc_code_walker(gfc_code**, int (*)(gfc_code**, int*, void*), int
(*)(gfc_expr**, int*, void*), void*)
        ../../gcc/fortran/frontend-passes.c:5337
0x955a87 gfc_code_walker(gfc_code**, int (*)(gfc_code**, int*, void*), int
(*)(gfc_expr**, int*, void*), void*)
        ../../gcc/fortran/frontend-passes.c:5673
0x956afb doloop_warn
        ../../gcc/fortran/frontend-passes.c:3063
0x95704a gfc_run_passes(gfc_namespace*)
        ../../gcc/fortran/frontend-passes.c:156
0x857657 gfc_resolve(gfc_namespace*)
        ../../gcc/fortran/resolve.c:17573
0x83f954 resolve_all_program_units
        ../../gcc/fortran/parse.c:6586
0x83f954 gfc_parse_file()
        ../../gcc/fortran/parse.c:6842
0x88db0f gfc_be_parse_file
        ../../gcc/fortran/f95-lang.c:216

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

end of thread, other threads:[~2021-12-16 22:36 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-14 18:12 [Bug fortran/103717] New: ICE in doloop_code, at fortran/frontend-passes.c:2656 gscfq@t-online.de
2021-12-14 20:13 ` [Bug fortran/103717] " anlauf at gcc dot gnu.org
2021-12-14 20:57 ` cvs-commit at gcc dot gnu.org
2021-12-14 21:04 ` anlauf at gcc dot gnu.org
2021-12-15 19:36 ` cvs-commit at gcc dot gnu.org
2021-12-16 22:22 ` cvs-commit at gcc dot gnu.org
2021-12-16 22:34 ` cvs-commit at gcc dot gnu.org
2021-12-16 22:36 ` 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).