[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:37:42 PST 2023
philnik777 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?
I'd like to understand the issue first. What deliberate UB are you talking about?
https://github.com/llvm/llvm-project/pull/72643
More information about the libcxx-commits
mailing list