[libcxx-commits] [PATCH] D102992: [libcxx][type_traits] remove `std::is_literal_type` and `std::result_of` for C++20
Wmbat via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Jun 1 13:48:23 PDT 2021
Wmbat added inline comments.
================
Comment at: libcxx/test/std/atomics/atomics.types.operations/atomics.types.operations.req/ctor.pass.cpp:38
typedef std::atomic<Tp> Atomic;
- static_assert(std::is_literal_type<Atomic>::value, "");
+ static_assert(std::is_trivial<Atomic>::value, "");
constexpr Tp t(42);
----------------
For some reason, this `static_assert` fails under the [GCC/C++20](https://buildkite.com/llvm-project/libcxx-ci/builds/3515#6c83e656-d43d-4f07-abd0-09be8130dcf9) build, but passes for all Clang builds. I have no idea why
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D102992/new/
https://reviews.llvm.org/D102992
More information about the libcxx-commits
mailing list