public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/112764] Associating entity does not have target attribute if selector has pointer attribute in associate block
Date: Thu, 30 Nov 2023 21:21:44 +0000	[thread overview]
Message-ID: <bug-112764-4-LCDPQ2wT0B@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-112764-4@http.gcc.gnu.org/bugzilla/>

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112764

--- Comment #8 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-13 branch has been updated by Harald Anlauf
<anlauf@gcc.gnu.org>:

https://gcc.gnu.org/g:dd5d399fc16ebe7a1a2b13ae8cb888d619af695c

commit r13-8110-gdd5d399fc16ebe7a1a2b13ae8cb888d619af695c
Author: Harald Anlauf <anlauf@gmx.de>
Date:   Wed Nov 29 21:47:24 2023 +0100

    Fortran: fix TARGET attribute of associating entity in ASSOCIATE [PR112764]

    The associating entity in an ASSOCIATE construct has the TARGET attribute
    if and only if the selector is a variable and has either the TARGET or
    POINTER attribute (e.g. F2018:11.1.3.3).

    gcc/fortran/ChangeLog:

            PR fortran/112764
            * primary.cc (gfc_variable_attr): Set TARGET attribute of
associating
            entity dependent on TARGET or POINTER attribute of selector.

    gcc/testsuite/ChangeLog:

            PR fortran/112764
            * gfortran.dg/associate_62.f90: New test.

    (cherry picked from commit 951a3e3749a9bf15cea3940ad4bd76d696e1b0b6)

  parent reply	other threads:[~2023-11-30 21:21 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-29 14:01 [Bug fortran/112764] New: " mscfd at gmx dot net
2023-11-29 18:02 ` [Bug fortran/112764] " anlauf at gcc dot gnu.org
2023-11-29 20:09 ` anlauf at gcc dot gnu.org
2023-11-29 20:10 ` anlauf at gcc dot gnu.org
2023-11-29 20:17 ` mscfd at gmx dot net
2023-11-29 20:37 ` anlauf at gcc dot gnu.org
2023-11-29 21:17 ` anlauf at gcc dot gnu.org
2023-11-30 12:38 ` cvs-commit at gcc dot gnu.org
2023-11-30 21:21 ` cvs-commit at gcc dot gnu.org [this message]
2023-11-30 21:23 ` anlauf at gcc dot gnu.org
2023-12-01  5:29 ` mscfd at gmx dot net
2023-12-01 17:52 ` 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-112764-4-LCDPQ2wT0B@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: link
Be 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).