https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119256
James K. Lowden <jklowden at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |RESOLVED CC| |jklowden at gcc dot gnu.org Resolution|--- |WONTFIX --- Comment #3 from James K. Lowden <jklowden at gcc dot gnu.org> --- The source range is indicated as designed. The dot in PROGRAM-ID. is specified as an optional part of the syntax. In the ISO spec under "8.3.5 Separators", it says: "3) The COBOL character period, when followed by a space, is a separator. The separator period shall be used only to indicate the end of a sentence, or as shown in formats." This is a "shown in format" case. Granted, it's debatable whether or not "an optional part of the syntax" is part of the error. Variations in input will provoke slightly different messages. But the user is not confused, and the diagnostic is not malformed.