[LLVMbugs] [Bug 10606] C++ operator cannot be used as a macro name

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Aug 8 05:15:53 PDT 2011


Paul Eremeeff <eremeev at viva64.com> changed:

           What    |Removed                     |Added
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |

--- Comment #2 from Paul Eremeeff <eremeev at viva64.com> 2011-08-08 07:15:53 CDT ---
(In reply to comment #1)
> Clang's behavior is correct. Lexically, 'and' is not an identifier but an
> operator, and one cannot define a macro for an operator.

This sample is based on code found in Boost library. This code compiles with
other compilers (VisualC++ for instance). I think there must be some
compatibility in Clang with such specific issues?

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list