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/95881] New: [9/10/11 Regression] ICE in resolve_symbol, at fortran/resolve.c:15175 Date: Wed, 24 Jun 2020 18:53:31 +0000 [thread overview] Message-ID: <bug-95881-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95881 Bug ID: 95881 Summary: [9/10/11 Regression] ICE in resolve_symbol, at fortran/resolve.c:15175 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 r7, with a missing attribute : $ cat z1.f90 program p type t real, allocatable :: a[:] end type class(t) :: x allocate (x%a[*]) end $ cat z2.f90 subroutine s(x) type t real, allocatable :: a[:] end type block class(t) :: x allocate (x%a[*]) end block end $ gfortran-6 -c z1.f90 -fcoarray=lib z1.f90:5:16: class(t) :: x 1 Error: CLASS variable 'x' at (1) must be dummy, allocatable or pointer $ gfortran-11-20200621 -c z1.f90 -fcoarray=single z1.f90:5:16: 5 | class(t) :: x | 1 Error: CLASS variable 'x' at (1) must be dummy, allocatable or pointer $ gfortran-11-20200621 -c z1.f90 -fcoarray=lib f951: internal compiler error: Segmentation fault 0xbce57f crash_signal ../../gcc/toplev.c:328 0x6cda25 resolve_symbol ../../gcc/fortran/resolve.c:15175 0x6ebde2 do_traverse_symtree ../../gcc/fortran/symbol.c:4162 0x6d1094 resolve_types ../../gcc/fortran/resolve.c:17175 0x6cc7ac gfc_resolve(gfc_namespace*) ../../gcc/fortran/resolve.c:17290 0x6b48ec resolve_all_program_units ../../gcc/fortran/parse.c:6246 0x6b48ec gfc_parse_file() ../../gcc/fortran/parse.c:6493 0x70098f gfc_be_parse_file ../../gcc/fortran/f95-lang.c:212
next reply other threads:[~2020-06-24 18:53 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-06-24 18:53 gscfq@t-online.de [this message] 2020-06-25 7:08 ` [Bug fortran/95881] [9/10/11 Regression] ICE in resolve_symbol, at fortran/resolve.c:15175 since r7-5348-g6479f45b31c13f30 marxin at gcc dot gnu.org 2020-06-25 7:36 ` rguenth at gcc dot gnu.org 2020-06-26 19:22 ` anlauf at gcc dot gnu.org 2020-06-26 19:37 ` anlauf at gcc dot gnu.org 2020-06-27 12:57 ` cvs-commit at gcc dot gnu.org 2020-06-27 13:06 ` cvs-commit at gcc dot gnu.org 2020-06-27 13:19 ` cvs-commit at gcc dot gnu.org 2020-06-27 13:20 ` 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-95881-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).