[PATCH] Fortran: reject module variable as character length in PARAMETER [PR104349]
Harald Anlauf
anlauf@gmx.de
Mon Apr 3 19:45:48 GMT 2023
Dear all,
the attached patch fixes an ICE-on-invalid for a PARAMETER expression
where the character length was a MODULE variable. The ICE seemed
strange, as we were catching related erroneous code for declarations in
programs or subroutines. Removing a seemingly bogus check of restricted
expressions is the simplest way to fix this. (We could also catch this
differently in decl.cc).
Besides, this also fixes an accepts-invalid, see testcase. :-)
Regtested on x86_64-pc-linux-gnu. OK for mainline (13) or rather wait?
Thanks,
Harald
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr104349.diff
Type: text/x-patch
Size: 2250 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/fortran/attachments/20230403/94a4e4ce/attachment.bin>
More information about the Fortran
mailing list