A further diagnostic remark: * When moving to the GCC diagnostic functions, please prefer the versions that take an explicit location (which should be based on the locations of the relevant source tokens in the COBOL source - preferably an accurate range for exactly which tokens are relevant for each diagnostic, failing that the location for some relevant token) over those that implicitly use input_location. New code such as this front end shouldn't need to use input_location implicitly at all; it should track explicit locations for everything throughout the front end.
-- Joseph S. Myers josmy...@redhat.com