https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114295
Bug ID: 114295 Summary: incorrect error location if attempting to compile implementation module without a definition module Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: modula2 Assignee: gaius at gcc dot gnu.org Reporter: gaius at gcc dot gnu.org Target Milestone: --- When attempting to compile an implementation module and the definition module cannot be found the compiler reports the error in the SYSTEM module: gm2 -g -c impls/UTF8.mod /home/gaius/opt/lib/gcc/x86_64-pc-linux-gnu/14.0.1/m2/m2cor/SYSTEM.def:27:19: error: the file containing the definition module ‘UTF8’ cannot be found 27 | DEFINITION MODULE SYSTEM ; | ^~~~~~