https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106655
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 53516 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53516&action=edit gcc13-pr106655.patch Untested patch to add -Winvalid-utf8 warning about invalid UTF-8 byte sequences in comments. In identifiers or string literals this is already diagnosed elsewhere. Not really sure if the warning should be on by default if -finput-charset=UTF-8 is used and C++23 pedantic.