https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92805
kargl at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kargl at gcc dot gnu.org --- Comment #10 from kargl at gcc dot gnu.org --- (In reply to anlauf from comment #9) > (In reply to Steve Kargl from comment #4) > > Tested. > > I tried to resurrect your patch, but it partly misses on the following: > > integer, parameter :: ck = kind ("a") ! default character kind > print *, ck_"a" > print *, ck _"a" > print *, ck_ "a" > print *, 1_"a" > print *, 1 _"a" > print *, 1_ "a" > end > > pr92805.f90:3:19: > > 3 | print *, ck _"a" > | 1 > Error: Syntax error in PRINT statement at (1) > pr92805.f90:4:20: > > 4 | print *, ck_ "a" > | 1 > Error: Syntax error in PRINT statement at (1) > > For some reason we detect only some of the syntax violations. Thanks for taking a look. I completely forgot about character kinds. I wonder if the difference/problem is caused by location. Numeric kinds are suffixes on the literal constant while character kinds are prefixes.