[libcxx-commits] [libcxx] Get cxx03 headers working on z/OS (PR #132992)

Sean Perry via libcxx-commits libcxx-commits at lists.llvm.org
Wed Oct 29 13:37:48 PDT 2025


perry-ca wrote:

We have found we need to use the c++03 headers for c++03 on z/OS.  Some of the clean up done to the usual headers cause a compilation error with -std=c++03 on z/OS.  The error message is:
```
<compiler-bin-dir>../include/c++/v1/__memory/unique_ptr.h:382:88: error: use of undeclared identifier 'SIZE_MAX'
  382 |   _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR __unique_ptr_array_bounds_stored() : __size_(SIZE_MAX) {}
      |                                                                                        ^
1 error generated.
```
(This is from a few months back so location might be off by a few lines now)

The only way around this was to use cxx03 headers with -std=c++03.  As I mentioned, I'm able to get back to this and would like complete this work so our c++03 changes are upstream.


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


More information about the libcxx-commits mailing list