[libcxx-commits] [libcxx] [libc++][hardening] Always enable all checks during constant evaluation (PR #107713)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Fri Sep 13 01:18:53 PDT 2024


philnik777 wrote:

@var-const I think `char_traits::copy` is a great example. It's UB to pass overlapping ranges to it, but we currently happen to define the behaviour because we use `memmove` for its implementation. With this change such UB will be diagnosed during constant evaluation.

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


More information about the libcxx-commits mailing list