public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/48914] New: #pragma GCC diagnostic ignored "-Wc++0x-compat" doesn't work
@ 2011-05-06  9:40 bero at arklinux dot org
  2011-07-24 20:13 ` [Bug c++/48914] " pinskia at gcc dot gnu.org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: bero at arklinux dot org @ 2011-05-06  9:40 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48914

           Summary: #pragma GCC diagnostic ignored "-Wc++0x-compat"
                    doesn't work
           Product: gcc
           Version: 4.6.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: bero@arklinux.org


$ cat test.cpp
#pragma GCC diagnostic ignored "-Wc++0x-compat"
namespace std {
        class nullptr_t { };
}
extern std::nullptr_t nullptr;

$ g++ -Wc++0x-compat -c test.cpp
test.cpp:5:1: warning: identifier ‘nullptr’ will become a keyword in C++0x
[-Wc++0x-compat]

$ g++ -Wc++0x-compat -Werror -c test.cpp
test.cpp:5:1: error: identifier ‘nullptr’ will become a keyword in C++0x
[-Werror=c++0x-compat]
cc1plus: all warnings being treated as errors


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-09-05 16:59 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-06  9:40 [Bug middle-end/48914] New: #pragma GCC diagnostic ignored "-Wc++0x-compat" doesn't work bero at arklinux dot org
2011-07-24 20:13 ` [Bug c++/48914] " pinskia at gcc dot gnu.org
2011-09-28 17:57 ` paolo.carlini at oracle dot com
2011-09-29 15:40 ` paolo.carlini at oracle dot com
2012-08-02  6:41 ` asmwarrior at gmail dot com
2012-08-02  8:28 ` asmwarrior at gmail dot com
2013-01-01 18:05 ` rjarrett at mathworks dot com
2013-01-02 18:51 ` rjarrett at mathworks dot com
2013-01-04 10:51 ` manu at gcc dot gnu.org
2014-09-05 16:59 ` manu at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).