]> gcc.gnu.org Git - 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>
Sun, 5 Mar 2023 19:35:11 +0000 (20:35 +0100)
commit8412f78621f6dcb7cee23dda49afb28299d8083b
treea2f11915d2d390266787dac4e5d2607311dc04cb
parent6edf2ae1e7b0a7f2151b9af9db6a96ae701869b9
Fortran: improve checking of character length specification [PR96025]

gcc/fortran/ChangeLog:

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

gcc/testsuite/ChangeLog:

PR fortran/96025
* gfortran.dg/pr96025.f90: New test.

(cherry picked from commit 6c1b825b3d6499dfeacf7c79dcf4b56a393ac204)
gcc/fortran/parse.c
gcc/fortran/resolve.c
gcc/testsuite/gfortran.dg/pr96025.f90 [new file with mode: 0644]
This page took 0.066709 seconds and 5 git commands to generate.