https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80942

--- Comment #4 from Vincent Lefèvre <vincent-gcc at vinc17 dot net> ---
(In reply to jos...@codesourcery.com from comment #2)
> The documentation explicitly says -Wpedantic includes some warnings about 
> things outside of ISO C, beyond those that violate syntax rules or 
> constraints.

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.
[...]
    Some users try to use -Wpedantic to check programs for strict ISO C
    conformance.  They soon find that it does not do quite what they
    want: it finds some non-ISO practices, but not all---only those for
    which ISO C requires a diagnostic, and some others for which
    diagnostics have been added.

Here, long strings are still valid C code, they are not even an extension (they
just depend on implementation limits). It does not make much sense to reject
them while still allowing some real extensions.

Reply via email to