Closed
Description
Hi all,
Some of the libc++ tests that use std::auto_ptr (like [this one]) currently fail to compile with LLVM 19 when using -std=c++20.
The error is:
error: no member named 'auto_ptr' in namespace 'std'
This is expected, since auto_ptr was removed in C++17.
However, in older versions like LLVM 17, these tests could still be compiled by defining: -D_LIBCPP_DISABLE_DEPRECATION_WARNINGS
Would it make sense to add this is macro in test builds, to allow testing auto_ptr-related code for those maintaining legacy projects? _LIBCPP_ENABLE_CXX17_REMOVED_AUTO_PTR
Thanks!