diff options
author | Harald Anlauf <anlauf@gmx.de> | 2023-11-29 21:47:24 +0100 |
---|---|---|
committer | Harald Anlauf <anlauf@gmx.de> | 2023-11-30 13:37:56 +0100 |
commit | 951a3e3749a9bf15cea3940ad4bd76d696e1b0b6 (patch) | |
tree | 6e42208c8eeb2a562934fa52a63c30e9fbe6c0ca /gcc/alloc-pool.h | |
parent | 2dde9f326ded84814a78c3044294b535c1f97b41 (diff) | |
download | gcc-951a3e3749a9bf15cea3940ad4bd76d696e1b0b6.zip gcc-951a3e3749a9bf15cea3940ad4bd76d696e1b0b6.tar.gz gcc-951a3e3749a9bf15cea3940ad4bd76d696e1b0b6.tar.bz2 |
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.
Diffstat (limited to 'gcc/alloc-pool.h')
0 files changed, 0 insertions, 0 deletions