[Bug c++/48914] #pragma GCC diagnostic ignored -Wc++0x-compat doesn't work
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48914 Manuel López-Ibáñez manu at gcc dot gnu.org changed: What|Removed |Added Status|NEW |RESOLVED Resolution|--- |DUPLICATE --- Comment #10 from Manuel López-Ibáñez manu at gcc dot gnu.org --- (In reply to Manuel López-Ibáñez from comment #9) If this warning is given by the preprocessor during lexing, then this is a dup of bug 53431. It is. *** This bug has been marked as a duplicate of bug 53431 ***
[Bug c++/48914] #pragma GCC diagnostic ignored -Wc++0x-compat doesn't work
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48914 --- Comment #9 from Manuel López-Ibáñez manu at gcc dot gnu.org --- If this warning is given by the preprocessor during lexing, then this is a dup of bug 53431.
[Bug c++/48914] #pragma GCC diagnostic ignored -Wc++0x-compat doesn't work
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48914 Manuel López-Ibáñez manu at gcc dot gnu.org changed: What|Removed |Added CC||manu at gcc dot gnu.org --- Comment #8 from Manuel López-Ibáñez manu at gcc dot gnu.org 2013-01-04 10:51:22 UTC --- Indeed, handle_pragma_diagnostic is called too late after lexing because pragmas are only parsed during the parsing phase but warnings can be emitted way earlier (and even earlier than lexing, during command-line setup). Bah, this doesn't look easy to fix at all.
[Bug c++/48914] #pragma GCC diagnostic ignored -Wc++0x-compat doesn't work
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48914 --- Comment #7 from Roger Jarrett rjarrett at mathworks dot com 2013-01-02 18:51:12 UTC --- Additional workaround (big hammer) #pragma GCC system_header Best used when the code generating the warning is in an isolated header file --Roger
[Bug c++/48914] #pragma GCC diagnostic ignored -Wc++0x-compat doesn't work
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48914 Roger Jarrett rjarrett at mathworks dot com changed: What|Removed |Added CC||rjarrett at mathworks dot ||com --- Comment #6 from Roger Jarrett rjarrett at mathworks dot com 2013-01-01 18:04:49 UTC --- Confirmed present in GCC 4.7.1 g++ foo.cpp -Wall -std=c++98 our use case is that we have a code base in transition to C++0x and have created our own nullptr_t for the platform that have not yet transitioned to C++0x we would like to acknowledge/suppress this warning in the file that implements the nullptr_t without resorting to -Wno-c++0x-compat on the commmand line. --Roger
[Bug c++/48914] #pragma GCC diagnostic ignored -Wc++0x-compat doesn't work
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48914 --- Comment #4 from asmwarrior asmwarrior at gmail dot com 2012-08-02 06:41:33 UTC --- We are Code::Blocks' developers, we see the same annoying warnings, hope it will be fixed. Thanks. See: http://forums.codeblocks.org/index.php/topic,16670.msg113169.html#msg113169
[Bug c++/48914] #pragma GCC diagnostic ignored -Wc++0x-compat doesn't work
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48914 --- Comment #5 from asmwarrior asmwarrior at gmail dot com 2012-08-02 08:28:10 UTC --- (In reply to comment #4) We are Code::Blocks' developers, we see the same annoying warnings, hope it will be fixed. Thanks. See: http://forums.codeblocks.org/index.php/topic,16670.msg113169.html#msg113169 Sorry, I post a wrong link, the link is only accessed by C::B developers, so it is a private link. But we just discuss the same issue.
[Bug c++/48914] #pragma GCC diagnostic ignored -Wc++0x-compat doesn't work
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48914 --- Comment #3 from Paolo Carlini paolo.carlini at oracle dot com 2011-09-29 15:31:03 UTC --- It seems, the warning is emitted *before* the pragma is actually processed in diagnostic_classify_diagnostic...
[Bug c++/48914] #pragma GCC diagnostic ignored -Wc++0x-compat doesn't work
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48914 --- Comment #2 from Paolo Carlini paolo.carlini at oracle dot com 2011-09-28 17:34:44 UTC --- So far have been able to figure out that diagnostic_classify_diagnostic apparently sets correctly context-n_classification_history to 1 when the pragma is parsed, but then is found == 0 in diagnostic_report_diagnostic.
[Bug c++/48914] #pragma GCC diagnostic ignored -Wc++0x-compat doesn't work
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48914 Andrew Pinski pinskia at gcc dot gnu.org changed: What|Removed |Added Keywords||diagnostic Status|UNCONFIRMED |NEW Last reconfirmed||2011.07.24 20:12:48 Component|middle-end |c++ Ever Confirmed|0 |1 --- Comment #1 from Andrew Pinski pinskia at gcc dot gnu.org 2011-07-24 20:12:48 UTC --- Confirmed.