[libcxx-commits] [libcxx] [AIX][libc++] fopen() does not support the 'x' (exclusive/noreplace) mode suffix. (PR #206498)
Tony Varghese via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Jul 10 03:34: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
----------------
tonykuttai wrote:
Isn't it better to add the platform specific warning to the function definition?
https://github.com/llvm/llvm-project/pull/206498
More information about the libcxx-commits
mailing list