https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117178
--- Comment #11 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Alejandro Colomar from comment #9) > > I think it's simpler to have -Wc++-compat warn about any uses of > [[gnu::nonstring]] at all, since C++ does not want such thing. That would > cover all cases of unterminated initializations, so would keep Andrew happy, > I think. Does it, Andrew? No because nonstring is still useful for C++ as it has nothing to do with string literals. You just want to connect the two ideas because in C string literals either can be with or without the nul terminating character (which is unlike C++ where it is always with the nul terminating character).