diff options
author | Steve Kargl <kargl@gcc.gnu.org> | 2024-02-23 22:05:04 +0100 |
---|---|---|
committer | Harald Anlauf <anlauf@gmx.de> | 2024-02-23 22:34:54 +0100 |
commit | 80d126ba99f4b9bc64d4861b3c4bae666497f2d4 (patch) | |
tree | b6b854c81600366f1af4c5f35260d9f85e8edcb2 /gcc/cgraph.cc | |
parent | 85c12ae8b80902ed46c97f33dbb61533e07f2905 (diff) | |
download | gcc-80d126ba99f4b9bc64d4861b3c4bae666497f2d4.zip gcc-80d126ba99f4b9bc64d4861b3c4bae666497f2d4.tar.gz gcc-80d126ba99f4b9bc64d4861b3c4bae666497f2d4.tar.bz2 |
Fortran: ALLOCATE statement, SOURCE/MOLD expressions with subrefs [PR114024]
PR fortran/114024
gcc/fortran/ChangeLog:
* trans-stmt.cc (gfc_trans_allocate): When a source expression has
substring references, part-refs, or %re/%im inquiries, wrap the
entity in parentheses to force evaluation of the expression.
gcc/testsuite/ChangeLog:
* gfortran.dg/allocate_with_source_27.f90: New test.
* gfortran.dg/allocate_with_source_28.f90: New test.
Co-Authored-By: Harald Anlauf <anlauf@gmx.de>
Diffstat (limited to 'gcc/cgraph.cc')
0 files changed, 0 insertions, 0 deletions