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 #5 from gdr at integrable-solutions dot net  2007-01-02 12:02 -------
Subject: Re:   New: '#define false FALSE' undefines '#define FALSE false'

"h8_spam at sonic dot net" <gcc-bugzilla@gcc.gnu.org> writes:

| I ran into an issue where doing #define FALSE false followed by #define false
| FALSE undefined the first FALSE which is not what I would expect.
| 
| Perhaps this is part of the standard, but in case not, I'm reporting it.

During the translation phases 3-6, `true' and `false' are pp-tokens
with special meanings.  See 16.1/4.

I don't know how common this PR is, to warrant a warning. 

-- 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]