https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94228
kargl at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kargl at gcc dot gnu.org --- Comment #3 from kargl at gcc dot gnu.org --- (In reply to Mark Paris from comment #2) > (In reply to Andrew Pinski from comment #1) > > gfortran defaults to -traditional-cpp preprocessor mode. > > Thank you for your reply. If I may, I'd like to pose a question that I > cannot find the answer to from online sources: > > Is it possible to run the preprocessor in the ISO mode, not the traditional > mode, when invoked by gfortran? No. Newer C, as opposed to older C, uses // for a comment. Fortran uses // as the concatenation operator. Run this through a cpp pre-processor. character(len=80) :: name = 'john ' // 'Doe' print *, name end ~/work/bin/cpp a.F # 1 "a.F" # 1 "<built-in>" # 1 "<command-line>" # 1 "a.F" character(len=80) :: name = 'john ' print *, name end