http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47347
Manuel López-Ibáñez <manu at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED CC| |manu at gcc dot gnu.org Known to work| |4.6.0 Resolution|--- |FIXED Summary|"pragma GCC diagnostic |"pragma GCC diagnostic |ignored" has no effect |ignored" has no effect for |sometimes |templates --- Comment #2 from Manuel López-Ibáñez <manu at gcc dot gnu.org> --- It works for me in GCC 4.9. I think this was fixed when we introduce the push/pop pragmas. Now we store the ranges forever, so it doesn't matter when the warning is given, only that the location of the warning is the correct one.