public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "kargl at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/114024] New: ICE allocate statement with source=cmp%re and z an array Date: Tue, 20 Feb 2024 21:42:21 +0000 [thread overview] Message-ID: <bug-114024-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114024 Bug ID: 114024 Summary: ICE allocate statement with source=cmp%re and z an array Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: kargl at gcc dot gnu.org Target Milestone: --- Found with the Fujitsu testsuite. The complex part%ref is a rank-1 array with dimension=3. xx should be allocated and assigned [3.45,3.45, 3.45] ! ! https://github.com/fujitsu/compiler-test-suite ! Modified from Fortran/0093/0093_0130.f90 ! implicit none complex:: cmp(3) real, allocatable::xx(:) cmp = (3.45,6.78) allocate (xx, source = cmp%re) end gfcx -c 0093/0093_0130.f90 0093/0093_0130.f90:10:36: 10 | allocate (xx, source = cmp(1:3)%re) | 1 internal compiler error: in retrieve_last_ref, at fortran/trans-array.cc:6197 0x6e889a retrieve_last_ref(gfc_ref**, gfc_ref**) ../../gccx/gcc/fortran/trans-array.cc:6197 0xa34c20 gfc_array_allocate(gfc_se*, gfc_expr*, tree_node*, tree_node*, tree_node*, tree_node*, tree_node*, tree_node**, gfc_expr*, tree_node*, bool, gfc_omp_namelist*) ../../gccx/gcc/fortran/trans-array.cc:6290 0xacce0b gfc_trans_allocate(gfc_code*, gfc_omp_namelist*) ../../gccx/gcc/fortran/trans-stmt.cc:6850 0xa25b49 trans_code ../../gccx/gcc/fortran/trans.cc:2535 0xa5ca15 gfc_generate_function_code(gfc_namespace*) ../../gccx/gcc/fortran/trans-decl.cc:7875 0x9cc496 translate_all_program_units ../../gccx/gcc/fortran/parse.cc:7073 0x9cc496 gfc_parse_file()
next reply other threads:[~2024-02-20 21:42 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2024-02-20 21:42 kargl at gcc dot gnu.org [this message] 2024-02-20 21:57 ` [Bug fortran/114024] " sgk at troutmask dot apl.washington.edu 2024-02-21 1:31 ` kargl at gcc dot gnu.org 2024-02-21 18:27 ` kargl at gcc dot gnu.org 2024-02-23 21:39 ` cvs-commit at gcc dot gnu.org 2024-03-06 21:03 ` cvs-commit at gcc dot gnu.org 2024-03-06 21:08 ` 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-114024-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).