[libcxx-commits] [libcxx] [AIX][libc++] fopen() does not support the 'x' (exclusive/noreplace) mode suffix. (PR #206498)
via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Jul 10 09:38:43 PDT 2026
================
@@ -256,8 +256,16 @@ public:
// 27.9.1.4 Members:
[[__nodiscard__]] _LIBCPP_HIDE_FROM_ABI bool is_open() const;
+# if defined(_AIX)
+ _LIBCPP_DIAGNOSE_WARNING(__mode& ios_base::noreplace,
+ "fstream::open() with noreplace is not supported on AIX; open() will return failure")
+# endif
----------------
Himadhith wrote:
The `_LIBCPP_DIAGNOSE_WARNING` is now placed as a trailing attribute.
https://github.com/llvm/llvm-project/pull/206498
More information about the libcxx-commits
mailing list