[libcxx-commits] [PATCH] D158215: [libc++][NFC] Remove __has_keyword

Hubert Tong via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Thu Sep 7 11:35:44 PDT 2023


hubert.reinterpretcast added a comment.

This causes `#include <algorithm>` to fail with `-std=gnu++98 -pedantic-errors`:

  $ clang++ -xc++ -<<<'#include <algorithm>' -std=gnu++98 -pedantic-errors 2>&1 | sed 's#/.*/bin#/bin#;' | head -n 20
  In file included from <stdin>:1:
  In file included from /bin/../include/c++/v1/algorithm:1811:
  In file included from /bin/../include/c++/v1/__algorithm/pstl_any_all_none_of.h:12:
  In file included from /bin/../include/c++/v1/__algorithm/pstl_find.h:14:
  In file included from /bin/../include/c++/v1/__algorithm/pstl_backend.h:12:
  In file included from /bin/../include/c++/v1/__algorithm/pstl_backends/cpu_backend.h:49:
  In file included from /bin/../include/c++/v1/__algorithm/pstl_backends/cpu_backends/any_of.h:15:
  In file included from /bin/../include/c++/v1/__atomic/atomic.h:12:
  In file included from /bin/../include/c++/v1/__atomic/atomic_base.h:12:
  In file included from /bin/../include/c++/v1/__atomic/atomic_sync.h:12:
  In file included from /bin/../include/c++/v1/__atomic/contention_t.h:12:
  /bin/../include/c++/v1/__atomic/cxx_atomic_impl.h:816:28: error: no template named '__cxx_atomic_base_impl'
    816 |           typename _Base = __cxx_atomic_base_impl<_Tp> >
        |                            ^
  In file included from <stdin>:1:
  In file included from /bin/../include/c++/v1/algorithm:1811:
  In file included from /bin/../include/c++/v1/__algorithm/pstl_any_all_none_of.h:12:
  In file included from /bin/../include/c++/v1/__algorithm/pstl_find.h:14:
  In file included from /bin/../include/c++/v1/__algorithm/pstl_backend.h:12:
  In file included from /bin/../include/c++/v1/__algorithm/pstl_backends/cpu_backend.h:49:
  Return:  0x00:0   Thu Sep  7 14:34:31 2023 EDT


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D158215/new/

https://reviews.llvm.org/D158215



More information about the libcxx-commits mailing list