[libcxx-commits] [libcxx] [libc++] Diagnoses insufficiently aligned pointers for std::assume_aligned during constant evaluation (PR #73775)

Rajveer Singh Bharadwaj via libcxx-commits libcxx-commits at lists.llvm.org
Sun Jan 21 02:51:59 PST 2024


Rajveer100 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
```

For `assume_aligned`:

```
no template named 'assume_aligned' in namespace 'std'; did you mean '__assume_aligned'?
```

macOS `modules` failure:

```
declaration of 'size_t' must be imported from module 'Darwin.C.stddef' before it is required
```

https://github.com/llvm/llvm-project/pull/73775


More information about the libcxx-commits mailing list