]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: fix ALLOCATE with SOURCE of deferred character length [PR114019]
authorHarald Anlauf <anlauf@gmx.de>
Fri, 28 Jun 2024 19:44:06 +0000 (21:44 +0200)
committerHarald Anlauf <anlauf@gmx.de>
Sat, 29 Jun 2024 12:49:02 +0000 (14:49 +0200)
commit7682d115402743090f20aca63a3b5e6c205dedff
treed261b8e70bd9f96a0206d990f454f95993bb67a4
parent21e3565927eda5ce9907d91100623052fa8182cd
Fortran: fix ALLOCATE with SOURCE of deferred character length [PR114019]

gcc/fortran/ChangeLog:

PR fortran/114019
* trans-stmt.cc (gfc_trans_allocate): Fix handling of case of
scalar character expression being used for SOURCE.

gcc/testsuite/ChangeLog:

PR fortran/114019
* gfortran.dg/allocate_with_source_33.f90: New test.
gcc/fortran/trans-stmt.cc
gcc/testsuite/gfortran.dg/allocate_with_source_33.f90 [new file with mode: 0644]