[libcxx-commits] [libcxx] [libc++] Deprecates std::errc constants. (PR #80542)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Sat Feb 3 09:09:10 PST 2024


================
@@ -113,6 +113,15 @@ _LIBCPP_BEGIN_NAMESPACE_STD
 // for them:
 
 // enum class errc
+//
+// LWG3869 deprecates the UNIX STREAMS macros and enum values.
+// This makes the code clumbersome:
+// - the enum value is deprecated and should show a diagnostic,
+// - the macro is deprecated and should _not_ show a diagnostic in this
+//   context, and
+// - the macro is not always available.
+// This leads to the odd pushing and popping of the deprecated
----------------
philnik777 wrote:

If a declaration itself is deprecated and uses deprecated functionality, the deprecation warning of the stuff it uses should be suppressed: https://godbolt.org/z/b839bqGj7. This looks like a Clang bug to me. Could you file one?

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


More information about the libcxx-commits mailing list