public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/55810] New: pedantic-errors can not show message for redefined macros in system_header
@ 2012-12-26  2:45 guojiufu at gmail dot com
  2012-12-26  3:41 ` [Bug c++/55810] " pinskia at gcc dot gnu.org
  2012-12-27  4:04 ` guojiufu at gmail dot com
  0 siblings, 2 replies; 3+ messages in thread
From: guojiufu at gmail dot com @ 2012-12-26  2:45 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 55810
           Summary: pedantic-errors can not show message for redefined
                    macros in system_header
    Classification: Unclassified
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: guojiufu@gmail.com


Referenced from Bug 16358 and 55602.  If there is "#pragma GCC
system_header",  it silently overwrites the previous defined macro.
-pedantic-errors can not help.  
--a.h --
#pragma GCC system_header
#define A 1
#define A 2
-----a.c----
#include "a.h"

int main(){
  return A;
}
------------
gcc a.c -pedantic-errors


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

* [Bug c++/55810] pedantic-errors can not show message for redefined macros in system_header
  2012-12-26  2:45 [Bug c++/55810] New: pedantic-errors can not show message for redefined macros in system_header guojiufu at gmail dot com
@ 2012-12-26  3:41 ` pinskia at gcc dot gnu.org
  2012-12-27  4:04 ` guojiufu at gmail dot com
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2012-12-26  3:41 UTC (permalink / raw)
  To: gcc-bugs


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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-12-26 03:41:19 UTC ---
You need -Wsystem-headers so GCC does not suppress warnings/pedatic errors from
system headers.


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

* [Bug c++/55810] pedantic-errors can not show message for redefined macros in system_header
  2012-12-26  2:45 [Bug c++/55810] New: pedantic-errors can not show message for redefined macros in system_header guojiufu at gmail dot com
  2012-12-26  3:41 ` [Bug c++/55810] " pinskia at gcc dot gnu.org
@ 2012-12-27  4:04 ` guojiufu at gmail dot com
  1 sibling, 0 replies; 3+ messages in thread
From: guojiufu at gmail dot com @ 2012-12-27  4:04 UTC (permalink / raw)
  To: gcc-bugs


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

Jeff Guo <guojiufu at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |CLOSED

--- Comment #2 from Jeff Guo <guojiufu at gmail dot com> 2012-12-27 04:03:53 UTC ---
closed


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

end of thread, other threads:[~2012-12-27  4:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-26  2:45 [Bug c++/55810] New: pedantic-errors can not show message for redefined macros in system_header guojiufu at gmail dot com
2012-12-26  3:41 ` [Bug c++/55810] " pinskia at gcc dot gnu.org
2012-12-27  4:04 ` guojiufu at gmail dot com

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).