https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50871
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |NEW
Assignee|redi at gcc dot gnu.org |unassigned at gcc dot
gnu.org
--- Comment #12 from Jonathan Wakely <redi at gcc dot gnu.org> ---
I've tried adding -Wpedantic to the WARN_FLAGS used to build libstdc++, but it
produces a lot of noise due to the use of extern/inline explicit instantiations
for templates, some of which are in .cc files not headers, so don't benefit
from -Wsystem-headers.
Unlike -Wno-long-long and -Wno-variadic-macros (both needed to stop too many
pedantic warnings) I don't think there's any way to use -Wpedantic without
getting warnings about the extern templates. We could move the affected
sources from src/c++98/ to src/c++11/ and compile as C++11 but that's probably
a bigger change than we want to do right now.
So I'm just going to try to remember to occassionally build using
--enable-cxx-flags="-Wpedantic -Wno-long-long -Wno-variadic-macros"
and check there are no new problems.