https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101735
kargl at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kargl at gcc dot gnu.org --- Comment #2 from kargl at gcc dot gnu.org --- (In reply to anlauf from comment #1) > Furthermore: > > character(len=5) :: str > print *, str% len ! accepted (ok) > print *, str(1:3)% len ! syntax error!? > end > > produces: > > pr101735-tb.f90:3:18: > > 3 | print *, str(1:3)% len ! syntax error!? > | 1 > Error: Syntax error in PRINT statement at (1) I think it is a bug in gfortran. F2018 shows designator % type-param-name with blanks around %. For fixed-form source code, blanks are irrelevant. For free-form source code, 6.3.2.2 has "Blanks may be inserted freely between tokens to improve readability; for example, blanks may occur between the tokens that form a complex literal constant." So, I would think we treat % as a token.