https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66066
--- Comment #12 from joseph at codesourcery dot com <joseph at codesourcery dot com> --- On Tue, 12 May 2015, manu at gcc dot gnu.org wrote: > > Working on this, but it isn't a simple matter of adding "pedantic". > > Joseph, would testing global_dc->pedantic_errors be an acceptable work-around > (with a big ??? note) while a better solution is found? If you want a workaround, a test for "pedantic" would be the natural workaround, but I think the proper fix is folding as I described at <https://gcc.gnu.org/ml/gcc-patches/2015-05/msg01015.html> to allow these cases to reach the existing pedwarn-if-pedantic logic.