https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93644
--- Comment #4 from Martin Sebor <msebor at gcc dot gnu.org> --- pr90735 suggests using the location of the closing curly brace of the function instead. Another alternative might be to use the location associated with the note.