This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/20078] New: Gcc doesn't complain about non-benign macro definitions
- From: "neil at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Feb 2005 14:42:38 -0000
- Subject: [Bug preprocessor/20078] New: Gcc doesn't complain about non-benign macro definitions
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
According to the standard
#define str(x) #x
#define str(x) %:x
violates a constraint, but GCC accepts it. Amusingly, Comeau shares the same bug.
A similar bug exists with the paste operator.
--
Summary: Gcc doesn't complain about non-benign macro definitions
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: preprocessor
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: neil at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20078