This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/47347] "pragma GCC diagnostic ignored" has no effect for templates
- From: "manu at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 16 Nov 2013 20:06:44 +0000
- Subject: [Bug c++/47347] "pragma GCC diagnostic ignored" has no effect for templates
- Auto-submitted: auto-generated
- References: <bug-47347-4 at http dot gcc dot gnu dot org/bugzilla/>
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.