]> git.ipfire.org Git - people/ms/gcc.git/commit
Fortran: fix ICE in check_charlen_present [PR108420]
authorHarald Anlauf <anlauf@gmx.de>
Mon, 16 Jan 2023 20:41:09 +0000 (21:41 +0100)
committerHarald Anlauf <anlauf@gmx.de>
Sat, 4 Feb 2023 15:15:24 +0000 (16:15 +0100)
commitc3985fd624053502b0aad85132982b4f8970811a
treefa2fa4531f4404d4e30a0c9fd2673bc090195f48
parentbe8003ffcfb02dd8ef49ffec01bf96da2d973bc2
Fortran: fix ICE in check_charlen_present [PR108420]

gcc/fortran/ChangeLog:

PR fortran/108420
* iresolve.c (check_charlen_present): Preserve character length if
there is no array constructor.

gcc/testsuite/ChangeLog:

PR fortran/108420
* gfortran.dg/pr108420.f90: New test.

(cherry picked from commit e6669c0a50ed8aee9e5997d61e6271668d149218)
gcc/fortran/iresolve.c
gcc/testsuite/gfortran.dg/pr108420.f90 [new file with mode: 0644]