This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
C++ preprocessor bug or not ?
- To: gcc at gcc dot gnu dot org
- Subject: C++ preprocessor bug or not ?
- From: John Levon <moz at compsoc dot man dot ac dot uk>
- Date: Tue, 6 Feb 2001 11:47:06 +0000 (GMT)
The following code (cut from qt 1.45) :
#if defined(xor)
// blah
#endif
is not appreciated by g++ > 2.95.2
"/tmp/@21568.7.cc:1:13: "defined" without an identifier"
1) shouldn't this be parse error, if xor is a keyword by default now ?
2) is this definitely Qt's fault (if so, I will have to work around it
in a very ugly way)
thanks
john