]> 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:36:17 +0000 (20:36 +0100)
commit9db1287c8ced5425f6ef9d26b05a3eb9cbcc4b8d
tree4ed3710e896f913a363380bba00bcc27d912c803
parentaaf5fba354ea5d84f6471ad79f0c066e1204c80d
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.094383 seconds and 5 git commands to generate.