https://llvm.org/bugs/show_bug.cgi?id=23435

            Bug ID: 23435
           Summary: __has_cpp_attribute is defined for non-C++ targets
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

__has_cpp_attribute is defined for C programs, but cannot parse scoped
attributes. It seems like this predefined macro should not be defined for
non-C++ targets, or it should support scoped attributes (and resolve to false
always) when in C mode. My preference is for the builtin to not be defined when
compiling for C as that would match the documented portability suggestions.

-- 
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