Fortran: formal symbol attributes for intrinsic procedures [PR110288]
commit3b2c523ae31b68fc3b8363b458a55eec53a44365
authorHarald Anlauf <anlauf@gmx.de>
Tue, 11 Jul 2023 19:21:25 +0000 (11 21:21 +0200)
committerHarald Anlauf <anlauf@gmx.de>
Tue, 11 Jul 2023 19:21:25 +0000 (11 21:21 +0200)
tree8617a28272725f934674ee64cbaaa6da86ae9e55
parent47bd559829726f44b9c545cd96db49e57f1fd3c4
Fortran: formal symbol attributes for intrinsic procedures [PR110288]

gcc/fortran/ChangeLog:

PR fortran/110288
* symbol.cc (gfc_copy_formal_args_intr): When deriving the formal
argument attributes from the actual ones for intrinsic procedure
calls, take special care of CHARACTER arguments that we do not
wrongly treat them formally as deferred-length.

gcc/testsuite/ChangeLog:

PR fortran/110288
* gfortran.dg/findloc_10.f90: New test.
gcc/fortran/symbol.cc
gcc/testsuite/gfortran.dg/findloc_10.f90 [new file with mode: 0644]