]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: intrinsics and deferred-length character arguments [PR95947,PR110658]
authorHarald Anlauf <anlauf@gmx.de>
Sun, 16 Jul 2023 20:17:27 +0000 (22:17 +0200)
committerHarald Anlauf <anlauf@gmx.de>
Thu, 20 Jul 2023 18:45:41 +0000 (20:45 +0200)
commit7bd1373f87d581b1e5482f9c558d481c38027a99
tree7bf7d15570e91db2ea2badb8d053d53cac379821
parent1c807686415880c5e3e472ebe39de31e54af2296
Fortran: intrinsics and deferred-length character arguments [PR95947,PR110658]

gcc/fortran/ChangeLog:

PR fortran/95947
PR fortran/110658
* trans-expr.c (gfc_conv_procedure_call): For intrinsic procedures
whose result characteristics depends on the first argument and which
can be of type character, the character length will not be deferred.

gcc/testsuite/ChangeLog:

PR fortran/95947
PR fortran/110658
* gfortran.dg/deferred_character_37.f90: New test.

(cherry picked from commit 95ddd2659849a904509067ec3a2770135149a722)
gcc/fortran/trans-expr.c
gcc/testsuite/gfortran.dg/deferred_character_37.f90 [new file with mode: 0644]