C++ preprocessor bug or not ?

Nathan Sidwell nathan@codesourcery.com
Wed Feb 7 01:51:00 GMT 2001


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


More information about the Gcc-patches mailing list