[llvm-bugs] [Bug 37513] New: `__has_feature(is_aggregate)` returns `false` even though `__is_aggregate` exists.
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu May 17 23:50:42 PDT 2018
https://bugs.llvm.org/show_bug.cgi?id=37513
Bug ID: 37513
Summary: `__has_feature(is_aggregate)` returns `false` even
though `__is_aggregate` exists.
Product: clang
Version: 5.0
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: mcypark at gmail.com
CC: dgregor at apple.com, llvm-bugs at lists.llvm.org
The following program prints 1, indicating that `__has_feature(is_aggregate)`
returned `false`, even though `__is_aggregate` is defined.
```
#include <iostream>
#if __has_feature(is_aggregate)
#error feature
#endif
#if __has_extension(is_aggregate)
#error extension
#endif
struct Agg {};
int main() {
std::cout << __is_aggregate(Agg);
}
```
https://wandbox.org/permlink/mvOCKdmZGaxKoRAu
--
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/20180518/699490bd/attachment.html>
More information about the llvm-bugs
mailing list