public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "jwmwalrus at gmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/107872] New: ICE on recursive DT with DTIO Date: Fri, 25 Nov 2022 20:53:54 +0000 [thread overview] Message-ID: <bug-107872-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107872 Bug ID: 107872 Summary: ICE on recursive DT with DTIO Product: gcc Version: 12.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: jwmwalrus at gmail dot com Target Milestone: --- Hi. The code below throws the following ICE: $ gfortran -c -fbacktrace test2.f90 gfortran: internal compiler error: Segmentation fault signal terminated program f951 Please submit a full bug report, with preprocessed source (by using -freport-bug). See <file:///usr/share/doc/gcc-12/README.Bugs> for instructions. ----------8<---------- module mod1 type t integer :: data type(t), allocatable :: next contains procedure, private :: write_t generic :: write(formatted) => write_t end type contains recursive subroutine write_t(this, unit, iotype, v_list, iostat, iomsg) class(t), intent(in) :: this integer, intent(in) :: unit character(*), intent(in) :: iotype integer, intent(in) :: v_list(:) integer, intent(out) :: iostat character(*), intent(inout) :: iomsg if (ALLOCATED(this%next)) & write (unit, '(dt)') this%next end subroutine end module ---------->8---------- $ gfortran --version GNU Fortran (Debian 12.2.0-9) 12.2.0 Copyright (C) 2022 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
next reply other threads:[~2022-11-25 20:53 UTC|newest] Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-11-25 20:53 jwmwalrus at gmail dot com [this message] 2022-11-27 0:18 ` [Bug fortran/107872] " jvdelisle at gcc dot gnu.org 2022-11-28 6:51 ` [Bug fortran/107872] ICE on recursive DT with DTIO since r7-4096-gbf9f15ee55f5b291 marxin at gcc dot gnu.org 2022-11-28 10:01 ` pault at gcc dot gnu.org 2022-11-30 4:06 ` jvdelisle at gcc dot gnu.org 2022-11-30 4:08 ` jvdelisle at gcc dot gnu.org 2022-12-09 21:09 ` anlauf at gcc dot gnu.org 2022-12-09 21:28 ` anlauf at gcc dot gnu.org 2022-12-09 22:09 ` cvs-commit at gcc dot gnu.org 2022-12-18 20:02 ` cvs-commit at gcc dot gnu.org 2022-12-18 20:05 ` cvs-commit at gcc dot gnu.org 2022-12-18 20:20 ` cvs-commit at gcc dot gnu.org 2022-12-18 20:22 ` anlauf at gcc dot gnu.org 2022-12-18 20:22 ` anlauf at gcc dot gnu.org 2022-12-18 20:22 ` 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-107872-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).