https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66290
--- Comment #8 from Lewis Hyatt <lhyatt at gcc dot gnu.org> --- (In reply to Lewis Hyatt from comment #7) > The wrong location is fixed for GCC 13. Shall I leave the PR open for now, > since there was also the issue of getting a caret pointing to the name of > macro, rather than just a diagnostic for the whole line? I can look into > that too. Patch to improve the range information on the diagnostic submitted for review here: https://gcc.gnu.org/pipermail/gcc-patches/2022-August/599397.html I think if that gets applied then we could close this one.