https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78226
Bug ID: 78226 Summary: Fill out location information everywhere Product: gcc Version: unknown Status: UNCONFIRMED Severity: minor Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: tkoenig at gcc dot gnu.org Target Milestone: --- Created attachment 39973 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=39973&action=edit Patch to expose missing locations It would be nice if we could consistently fill in the location information everywhere. Missing information can lead to bugs such as PR 69544. I have made a separate front-end pass for finding pieces of code where location information is not filled in (see attachment). With this, it is rather easy to find the offending pieces of code (sometimes less easy to find where the location should have been set :-) Once we have a trunk that passes cleanly with this patch, we could then include something this pass (but only when --enable-checking=yes is active) to make sure that when a new piece of code is added, people don't forget the location information. The gfc_warning_now calls at the moment are there so that a) the testsuite fails and b) I can still get a dump with -fdump-fortran-original. These would probably be changed to gfc_internal_error.