This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/80942] -Woverlength-strings should no longer be implied by -Wpedantic


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 joseph@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).

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]