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/103508] New: ICE in gfc_find_symtree, at fortran/symbol.c:2979 Date: Tue, 30 Nov 2021 18:52:43 +0000 [thread overview] Message-ID: <bug-103508-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103508 Bug ID: 103508 Summary: ICE in gfc_find_symtree, at fortran/symbol.c:2979 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 : $ cat z1.f90 program p type t(n) integer, len :: n = 1 character(n) :: c end type block block type(t(3)) :: x x%c = 'abc' print *, len(x%c) end end end $ gfortran-12-20211128 -c z1.f90 z1.f90:11:9: 11 | end | 1 Error: END BLOCK statement expected at (1) f951: internal compiler error: Segmentation fault 0xf0942f crash_signal ../../gcc/toplev.c:322 0x87a999 gfc_find_symtree(gfc_symtree*, char const*) ../../gcc/fortran/symbol.c:2979 0x87d157 gfc_find_sym_tree(char const*, gfc_namespace*, int, gfc_symtree**) ../../gcc/fortran/symbol.c:3224 0x87d2ae gfc_get_ha_sym_tree(char const*, gfc_symtree**) ../../gcc/fortran/symbol.c:3452 0x809fbe gfc_match_sym_tree(gfc_symtree**, int) ../../gcc/fortran/match.c:680 0x841bec match_variable ../../gcc/fortran/primary.c:4012 0x80a916 gfc_match(char const*, ...) ../../gcc/fortran/match.c:1137 0x80c1dd gfc_match_assignment() ../../gcc/fortran/match.c:1315 0x835a40 match_word ../../gcc/fortran/parse.c:67 0x835a40 decode_statement ../../gcc/fortran/parse.c:363 0x83753a next_free ../../gcc/fortran/parse.c:1397 0x83753a next_statement ../../gcc/fortran/parse.c:1629 0x83ad40 parse_executable ../../gcc/fortran/parse.c:5935 0x83c05f parse_progunit ../../gcc/fortran/parse.c:6205 0x83afbc parse_block_construct ../../gcc/fortran/parse.c:4873 0x83afbc parse_executable ../../gcc/fortran/parse.c:5786 0x83c05f parse_progunit ../../gcc/fortran/parse.c:6205 0x83d2a1 gfc_parse_file() ../../gcc/fortran/parse.c:6724 0x88b37f gfc_be_parse_file ../../gcc/fortran/f95-lang.c:216
next reply other threads:[~2021-11-30 18:52 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-11-30 18:52 gscfq@t-online.de [this message] 2021-11-30 18:53 ` [Bug fortran/103508] " gscfq@t-online.de 2023-06-30 8:39 ` [Bug fortran/103508] [PDT] " 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-103508-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).