[LLVMbugs] [Bug 8727] New: no-operator-names doesn't work with C++

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Dec 2 07:16:38 PST 2010


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: unassignedclangbugs at nondot.org
        ReportedBy: smacvicar at gmail.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


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.



More information about the llvm-bugs mailing list