public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "everythingfunctional at protonmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/102112] New: Cannot associate with component of associate target Date: Fri, 27 Aug 2021 23:01:49 +0000 [thread overview] Message-ID: <bug-102112-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102112 Bug ID: 102112 Summary: Cannot associate with component of associate target Product: gcc Version: 11.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: everythingfunctional at protonmail dot com Target Milestone: --- I'm using version Ubuntu 11.1.0-1ubuntu1~21.04 on Pop!OS. The compiler is rejecting valid code using associate, in this instance when trying to associate to a component of a target in an associate. Note that this also occurs when calling a type-bound procedure of the target. program main implicit none type :: sub_t integer :: val end type type :: obj_t type(sub_t) :: sub_obj end type associate(initial_sub => sub_t(42)) associate(obj => obj_t(initial_sub)) associate(sub_obj => obj%sub_obj) end associate end associate end associate end program gives app/main.f90:14:33: 14 | associate(sub_obj => obj%sub_obj) | 1 Error: Invalid association target at (1)
next reply other threads:[~2021-08-27 23:01 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-08-27 23:01 everythingfunctional at protonmail dot com [this message] 2023-06-01 8:14 ` [Bug fortran/102112] " pault at gcc dot gnu.org 2023-06-02 7:42 ` cvs-commit at gcc dot gnu.org 2023-06-02 8:41 ` pault at gcc dot gnu.org 2023-08-27 8:51 ` cvs-commit 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-102112-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).