aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/parser.c
diff options
context:
space:
mode:
authorTobias Burnus <tobias@codesourcery.com>2021-09-23 18:47:45 +0200
committerTobias Burnus <tobias@codesourcery.com>2021-09-23 18:48:48 +0200
commit1b07d9dce6c51c98d011236c3d4cd84a2ed59ba2 (patch)
tree69692653253ae23ae0fdd16ca84dd8d1b834d6c6 /gcc/cp/parser.c
parentb3585c0836e729bed56b9afd4292177673a25ca0 (diff)
downloadgcc-1b07d9dce6c51c98d011236c3d4cd84a2ed59ba2.zip
gcc-1b07d9dce6c51c98d011236c3d4cd84a2ed59ba2.tar.gz
gcc-1b07d9dce6c51c98d011236c3d4cd84a2ed59ba2.tar.bz2
Fortran: Handle allocated() with coindexed scalars [PR93834]
While for an allocatable 'array', 'array(:)' and 'array(:)[1]' are not allocatable, it is believed that not only 'scalar' but also 'scalar[1]' is allocatable. However, coarrays are collectively established/allocated; thus, 'allocated(scalar[i])' is equivalent to 'allocated(scalar)'. [At least when assuming that 'i' does not refer to a failed image.] 2021-09-23 Harald Anlauf <anlauf@gmx.de> Tobias Burnus <tobias@codesourcery.com> PR fortran/93834 gcc/fortran/ChangeLog: * trans-intrinsic.c (gfc_conv_allocated): Cleanup. Handle coindexed scalar coarrays. gcc/testsuite/ChangeLog: * gfortran.dg/coarray/coarray_allocated.f90: New test.
Diffstat (limited to 'gcc/cp/parser.c')
0 files changed, 0 insertions, 0 deletions