http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55602
Bug #: 55602
Summary: Does not generate Error message for redefined macros
Classification: Unclassified
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: no
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55602
--- Comment #2 from Jeff Guo 2012-12-10 11:57:57
UTC ---
-pedantic-errors is helpful if the redefined macros not guarded by "#pragma GCC
system_header"
--a.h --
#pragma GCC system_header
#define A 1
#define A 2
-a.c
#include "
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55602
--- Comment #3 from Jeff Guo 2012-12-10 11:59:07
UTC ---
Above case is still no error message reported even with -pedantic-errors
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55602
Jeff Guo changed:
What|Removed |Added
Status|RESOLVED|VERIFIED
Resolution|INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55602
Jeff Guo changed:
What|Removed |Added
Status|VERIFIED|CLOSED
--- Comment #5 from Jeff Guo
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
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55810
Jeff Guo changed:
What|Removed |Added
Status|RESOLVED|CLOSED
--- Comment #2 from Jeff Guo