]> git.ipfire.org Git - people/ms/gcc.git/commit
Fortran: improve checking of character length specification [PR96025]
authorHarald Anlauf <anlauf@gmx.de>
Mon, 20 Feb 2023 20:28:09 +0000 (21:28 +0100)
committerHarald Anlauf <anlauf@gmx.de>
Tue, 21 Feb 2023 17:38:56 +0000 (18:38 +0100)
commit6c1b825b3d6499dfeacf7c79dcf4b56a393ac204
tree84d5965ba506d470b0154909d78c3c4a2e9d7db3
parentf77948c567f331015dfa4d695718c2211dab0816
Fortran: improve checking of character length specification [PR96025]

gcc/fortran/ChangeLog:

PR fortran/96025
* parse.cc (check_function_result_typed): Improve type check of
specification expression for character length and return status.
(parse_spec): Use status from above.
* resolve.cc (resolve_fntype): Prevent use of invalid specification
expression for character length.

gcc/testsuite/ChangeLog:

PR fortran/96025
* gfortran.dg/pr96025.f90: New test.
gcc/fortran/parse.cc
gcc/fortran/resolve.cc
gcc/testsuite/gfortran.dg/pr96025.f90 [new file with mode: 0644]