public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "gscfq@t-online.de" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/103717] New: ICE in doloop_code, at fortran/frontend-passes.c:2656 Date: Tue, 14 Dec 2021 18:12:21 +0000 [thread overview] Message-ID: <bug-103717-4@http.gcc.gnu.org/bugzilla/> (raw) 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
next reply other threads:[~2021-12-14 18:12 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-12-14 18:12 gscfq@t-online.de [this message] 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
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-103717-4@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: linkBe 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).