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

gdr at integrable-solutions dot net gcc-bugzilla@gcc.gnu.org
Tue Jan 2 12:02:00 GMT 2007



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



More information about the Gcc-bugs mailing list