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: unassignedclangb...@nondot.org
Reporter: mcyp...@gmail.com
CC: dgre...@apple.com, llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs