http://llvm.org/bugs/show_bug.cgi?id=8727

           Summary: no-operator-names doesn't work with C++
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]


This is from a header file from c-client, was running it with:
clang test.cpp -E -fno-operator-names

g++ has no issues with this.


#ifdef __cplusplus        /* help out people who use C++ compilers */
extern "C" {
  /* If you use gcc, you may also have to use -fno-operator-names */
#define private cclientPrivate    /* private to c-client */
#define and cclientAnd        /* C99 doesn't realize that ISO 646 is dead */
#define or cclientOr
#define not cclientNot
#undef private
}
#endif

-- 
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to