https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119633
James K. Lowden <jklowden at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |SUSPENDED Severity|normal |enhancement --- Comment #3 from James K. Lowden <jklowden at gcc dot gnu.org> --- > USE FOR DEBUGGING ON ALL REFERENCES OF FREC I can find no compiler that supports that syntax. IMO the error message is fine. The parser doesn't recognize REFERENCES as a keyword, assumes it's a user-defined NAME (a data-item) that was not defined, and indicates a syntax error. Perhaps, if and when we decide to support the NIST DB module, we could implement a specific message at that time, or support the DB303M syntax. > DB303M.CBL:33:8: error: missing END DECLARATIVES or SECTION name This is unfortunate, but harder to fix than one might hope. Because of the grammar, if the first USE statement in DECLARATIVES has a syntax error, Bison recovery invalidates the entire Procedure Division. Experimenting with custom anticipation of the erroneous syntax didn't lead to significantly better results. I'm setting this PR for this particular problem to suspended, as a feature request.