[libcxx-commits] [libcxx] [libcxx] Align `__recommend() + 1` by __endian_factor (PR #90292)
Tom Stellard via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Jun 11 18:04:03 PDT 2024
tstellar wrote:
> Basically, folks passing the `-fsized-deallocation` Clang flag (which is off by default in LLVM 18) will get the wrong deallocation size passed to their `operator delete` when storage has been allocated/deallocated by `std::string`. I don't know what the result of passing the wrong size will usually be, I guess it depends on what the custom `operator delete` does, but I could definitely imagine it being a correctness concern.
Is there a reason why gcc has this on by default, but clang doesn't?
https://github.com/llvm/llvm-project/pull/90292
More information about the libcxx-commits
mailing list