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/95339] New: ICE in alloc_scalar_allocatable_for_subcomponent_assignment, at fortran/trans-expr.c:8002 Date: Tue, 26 May 2020 16:39:38 +0000 [thread overview] Message-ID: <bug-95339-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95339 Bug ID: 95339 Summary: ICE in alloc_scalar_allocatable_for_subcomponent_assignment, at fortran/trans-expr.c:8002 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 at least r5 : $ cat z1.f90 program p type t character(:), allocatable :: a end type type(t) :: x[*] data x /t(1)/ end $ gfortran-11-20200524 -c z1.f90 -fcoarray=single # accepted $ $ gfortran-11-20200524 -c z1.f90 -fcoarray=lib z1.f90:1:0: 1 | program p | internal compiler error: in alloc_scalar_allocatable_for_subcomponent_assignment, at fortran/trans-expr.c:8002 0x73618f alloc_scalar_allocatable_for_subcomponent_assignment ../../gcc/fortran/trans-expr.c:8002 0x73618f gfc_trans_subcomponent_assign ../../gcc/fortran/trans-expr.c:8190 0x7362bb gfc_trans_structure_assign(tree_node*, gfc_expr*, bool, bool) ../../gcc/fortran/trans-expr.c:8467 0x72f860 gfc_conv_structure(gfc_se*, gfc_expr*, int) ../../gcc/fortran/trans-expr.c:8534 0x72fa9c gfc_conv_expr(gfc_se*, gfc_expr*) ../../gcc/fortran/trans-expr.c:8702 0x73f1aa gfc_trans_assignment_1 ../../gcc/fortran/trans-expr.c:10884 0x71cf48 generate_coarray_sym_init ../../gcc/fortran/trans-decl.c:5688 0x6e6e32 do_traverse_symtree ../../gcc/fortran/symbol.c:4150 0x71c385 generate_coarray_init ../../gcc/fortran/trans-decl.c:5738 0x728aa4 gfc_generate_function_code(gfc_namespace*) ../../gcc/fortran/trans-decl.c:6773 0x6affe6 translate_all_program_units ../../gcc/fortran/parse.c:6306 0x6affe6 gfc_parse_file() ../../gcc/fortran/parse.c:6545 0x6fb9af gfc_be_parse_file ../../gcc/fortran/f95-lang.c:210
next reply other threads:[~2020-05-26 16:39 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-05-26 16:39 gscfq@t-online.de [this message] 2020-05-27 8:32 ` [Bug fortran/95339] " marxin 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-95339-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).