This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/47347] "pragma GCC diagnostic ignored" has no effect for templates


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]