public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug preprocessor/20078] New: Gcc doesn't complain about non-benign macro definitions
@ 2005-02-19 20:32 neil at gcc dot gnu dot org
2005-02-19 23:15 ` [Bug preprocessor/20078] " pinskia at gcc dot gnu dot org
0 siblings, 1 reply; 2+ messages in thread
From: neil at gcc dot gnu dot org @ 2005-02-19 20:32 UTC (permalink / raw)
To: gcc-bugs
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug preprocessor/20078] Gcc doesn't complain about non-benign macro definitions
2005-02-19 20:32 [Bug preprocessor/20078] New: Gcc doesn't complain about non-benign macro definitions neil at gcc dot gnu dot org
@ 2005-02-19 23:15 ` pinskia at gcc dot gnu dot org
0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-02-19 23:15 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-02-19 17:05 -------
Confirmed, not a regression.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |accepts-invalid, diagnostic
Known to fail| |2.95.3 3.0.4 3.2.3 3.3.3
| |3.4.0 4.0.0
Last reconfirmed|0000-00-00 00:00:00 |2005-02-19 17:05:00
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20078
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-02-19 17:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-19 20:32 [Bug preprocessor/20078] New: Gcc doesn't complain about non-benign macro definitions neil at gcc dot gnu dot org
2005-02-19 23:15 ` [Bug preprocessor/20078] " pinskia at gcc dot gnu dot 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).