https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104349
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Harald Anlauf <anl...@gcc.gnu.org>: https://gcc.gnu.org/g:c57a93f647511cf7a3005f1197a1da03b5e3a1b0 commit r13-7003-gc57a93f647511cf7a3005f1197a1da03b5e3a1b0 Author: Harald Anlauf <anl...@gmx.de> Date: Mon Apr 3 21:34:01 2023 +0200 Fortran: reject module variable as character length in PARAMETER [PR104349] gcc/fortran/ChangeLog: PR fortran/104349 * expr.cc (check_restricted): Adjust check for valid variables in restricted expressions: make no exception for module variables. gcc/testsuite/ChangeLog: PR fortran/104349 * gfortran.dg/der_charlen_1.f90: Adjust dg-patterns. * gfortran.dg/pr104349.f90: New test.