[LLVMbugs] [Bug 23435] New: __has_cpp_attribute is defined for non-C++ targets
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed May 6 06:27:19 PDT 2015
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: unassignedclangbugs at nondot.org
Reporter: aaron at aaronballman.com
CC: llvmbugs at cs.uiuc.edu
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150506/9d106756/attachment.html>
More information about the llvm-bugs
mailing list