This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/30348] '#define false FALSE' undefines '#define FALSE false'



------- Comment #8 from gdr at integrable-solutions dot net  2007-01-02 12:08 -------
Subject: Re:  '#define false FALSE' undefines '#define FALSE false'

"pinskia at gmail dot com" <gcc-bugzilla@gcc.gnu.org> writes:

| Subject: Re:  '#define false FALSE' undefines '#define FALSE
|         false'
| 
| On Mon, 2007-01-01 at 22:43 +0000, h8_spam at sonic dot net wrote:
| > Right, but since true and false are keywords, I would expect the
| > #define true
| > TRUE and false FALSE to be no-ops.
| 
| 
| How?  Preprocessing happens before tokenazation happens.

Right; however `true' and `false' are also pp-tokens with special meanings
during pre-processing.  
Therefore I think the PR is invalid, but you have to double-check that
with a CPP expert.


-- Gaby


-- 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]