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

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
#if __has_extension(is_aggregate)
#error extension

struct Agg {};

int main() {
  std::cout << __is_aggregate(Agg);

You are receiving this mail because:
You are on the CC list for the bug.
llvm-bugs mailing list

Reply via email to