public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "vivekrao4 at yahoo dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/104096] New: ICE with parameterized derived type (PDT) Date: Tue, 18 Jan 2022 14:49:43 +0000 [thread overview] Message-ID: <bug-104096-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104096 Bug ID: 104096 Summary: ICE with parameterized derived type (PDT) Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: vivekrao4 at yahoo dot com Target Milestone: --- gfortran-11 --version GNU Fortran (Ubuntu 11.1.0-1ubuntu1~20.04) 11.1.0 <snip> (base) /mnt/c/fortran/test$ cat pdt_sub.f90 module m implicit none type :: t(n) integer, len :: n = 0 integer :: vec(n) end type t contains subroutine disp(dt) type(t(n=*)), intent(in) :: dt print*,dt%vec end subroutine disp end module m ! program main use m, only: t, disp implicit none integer, parameter :: n = 3 type(t(n)) :: x x%vec = [1,4,9] print*,x%vec call disp(x) end program main (base) /mnt/c/fortran/test$ gfortran-11 pdt_sub.f90 f951: internal compiler error: gfc_compare_array_spec(): Array spec clobbered 0x14f8018 gfc_internal_error(char const*, ...) ???:0 0x14a723b gfc_compare_array_spec(gfc_array_spec*, gfc_array_spec*) ???:0 0x14fb98a gfc_compare_derived_types(gfc_symbol*, gfc_symbol*) ???:0 0x15014b0 gfc_compare_actual_formal(gfc_actual_arglist**, gfc_formal_arglist*, int, int, bool, locus*) ???:0 0x150283b gfc_procedure_use(gfc_symbol*, gfc_actual_arglist**, locus*) ???:0 0x1591c97 gfc_resolve_code(gfc_code*, gfc_namespace*) ???:0 0x1572ad1 gfc_parse_file() ???:0 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <file:///usr/share/doc/gcc-11/README.Bugs> for instructions.
next reply other threads:[~2022-01-18 14:49 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-01-18 14:49 vivekrao4 at yahoo dot com [this message] 2022-01-18 15:08 ` [Bug fortran/104096] " marxin at gcc dot gnu.org 2022-01-19 10:16 ` rguenth at gcc dot gnu.org 2022-05-18 20:50 ` kargl at gcc dot gnu.org 2023-06-30 8:42 ` pault 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-104096-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).