https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80942
--- Comment #6 from Vincent Lefèvre <vincent-gcc at vinc17 dot net> --- (In reply to jos...@codesourcery.com from comment #5) > > --- Comment #4 from Vincent Lefèvre <vincent-gcc at vinc17 dot net> --- > > This is not what is documented: > > > > Issue all the warnings demanded by strict ISO C and ISO C++; reject > > all programs that use forbidden extensions, and some other programs > > that do not follow ISO C and ISO C++. For ISO C, follows the > > version of the ISO C standard specified by any -std option used. > > I consider this to be within the "some other programs". The question, I > suppose, is whether implementation limits should be moved out of the scope > of -Wpedantic. I would not say that this is within the "some other programs". I mean that a program that has string constants shorter than the implementation limit follows ISO C, even when these strings are longer than the minimum limit allowed by ISO C. It is just not strictly conforming (like almost all programs).