[libcxx-commits] [libcxx] [libc++] Use __is_pointer_in_range for char_traits checks (PR #72643)

via libcxx-commits libcxx-commits at lists.llvm.org
Fri Nov 24 11:33:27 PST 2023


bgra8 wrote:

heads-up @philnik777: we have about 30 test failures that have all bisected to this revision.

I noticed `std::__is_pointer_in_range()` has a deliberate UB. Replacing that with the `std::reinterpret_cast<const char*>` implementation and then rebuilding the compiler and `libc++` makes all tests pass.

Should we revert this?

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


More information about the libcxx-commits mailing list