[libcxx-commits] [libcxx] [AIX][libc++] fopen() does not support the 'x' (exclusive/noreplace) mode suffix. (PR #206498)
Jake Egan via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Jul 7 20:37:57 PDT 2026
================
@@ -1208,6 +1219,8 @@ public:
[[__nodiscard__]] _LIBCPP_HIDE_FROM_ABI bool is_open() const;
void open(const char* __s, ios_base::openmode __mode = ios_base::in);
# if _LIBCPP_HAS_OPEN_WITH_WCHAR
+ _LIBCPP_DIAGNOSE_WARNING((__mode & ios_base::noreplace) && defined(_AIX),
----------------
jakeegan wrote:
Checking `_AIX` with a preprocessor conditional should resolve the compilation failure on the CI.
https://github.com/llvm/llvm-project/pull/206498
More information about the libcxx-commits
mailing list