Fortran: reject invalid CHARACTER length of derived type components [PR96024]
authorHarald Anlauf <anlauf@gmx.de>
Tue, 21 Feb 2023 21:06:33 +0000 (22:06 +0100)
committerHarald Anlauf <anlauf@gmx.de>
Wed, 22 Feb 2023 17:41:20 +0000 (18:41 +0100)
commit31303c9b5bab200754cdb7ef8cd91ae4918f3018
tree91a4662b54d0a70401dcfdb87e7b952ba1a0f623
parent5344482c4d3ae0618fa8f5ed38f8309db43fdb82
Fortran: reject invalid CHARACTER length of derived type components [PR96024]

gcc/fortran/ChangeLog:

PR fortran/96024
* resolve.cc (resolve_component): The type of a CHARACTER length
expression must be INTEGER.

gcc/testsuite/ChangeLog:

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