This is the mail archive of the gcc@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]

Re: C++ preprocessor bug or not ?


Neil Booth wrote:

> As Dave and Philipp pointed out, CPP is correct.  However, the diagnostic
> is awful.
Thanks to all who corrected me - what a surprising behaviour!

> /tmp/test.c:1:14: operator "defined" requires an identifier
> /tmp/test.c:1:14: ("xor" is an alternative token for "^" in C++)
Excellent!

nathan

-- 
Dr Nathan Sidwell   ::   http://www.codesourcery.com   ::   CodeSourcery LLC
         'But that's a lie.' - 'Yes it is. What's your point?'
nathan@codesourcery.com : http://www.cs.bris.ac.uk/~nathan/ : nathan@acm.org

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