https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110290
Bug ID: 110290 Summary: Assumed-length character dummy with VALUE attribute Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: anlauf at gcc dot gnu.org Target Milestone: --- The following valid code is rejected: subroutine s (x) character(*), value :: x ! rejected end 1 | subroutine s (x) | 1 Error: Character dummy variable 'x' at (1) with VALUE attribute must have constant length Note that fixed length works: subroutine s2 (x) character(4), value :: x ! OK end It appears that there never was such a restriction in the standard.