[libcxx-commits] [libcxx] [libc++] Diagnoses insufficiently aligned pointers for std::assume_aligned during constant evaluation (PR #73775)
Mark de Wever via libcxx-commits
libcxx-commits at lists.llvm.org
Sun Jan 21 05:18:31 PST 2024
mordante wrote:
> For older version of C++, the test fails due to `static_assert` being available only since C++17:
>
> ```
> error: 'static_assert' with no message is a C++17 extension
> ```
Static asserts are part of the language since C++11, static asserts without a message are part of the language since C++17. E.g `static_assert(foo(), "this message is required before C++17");` works for C++11 and newer.
> macOS `modules` failure:
>
> ```
> declaration of 'size_t' must be imported from module 'Darwin.C.stddef' before it is required
> ```
Did you `#include <cstddef>` in that file?
https://github.com/llvm/llvm-project/pull/73775
More information about the libcxx-commits
mailing list