https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121289
--- Comment #2 from Gaius Mulley <gaius at gcc dot gnu.org> --- Created attachment 61992 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61992&action=edit Proposed fix which adds the correct location to the warning message The patch adds a tok location parameter to the style procedure and dependants which is used during the construction of the warning message.