diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2022-02-03 13:17:05 +0000 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2022-02-04 15:26:59 +0000 |
commit | 27ba40559ccb887458009a34f710d4a22af85156 (patch) | |
tree | a06079dbb6fc4aeeb8d7f3fcd828520845e38e05 | |
parent | 7e703f42b0d9d80c185c720e3c25b6b5aa7cf2fc (diff) | |
download | gcc-27ba40559ccb887458009a34f710d4a22af85156.zip gcc-27ba40559ccb887458009a34f710d4a22af85156.tar.gz gcc-27ba40559ccb887458009a34f710d4a22af85156.tar.bz2 |
libstdc++: Add suggestion to std::uncaught_exception() warning
We should use the SUGGEST macro for std::uncaught_exception()
deprecation warnings.
libstdc++-v3/ChangeLog:
* include/bits/allocator.h: Qualify std::allocator_traits in
deprecated warnings.
* libsupc++/exception (uncaught_exception): Add suggestion to
deprecated warning.
-rw-r--r-- | libstdc++-v3/include/bits/allocator.h | 4 | ||||
-rw-r--r-- | libstdc++-v3/libsupc++/exception | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/libstdc++-v3/include/bits/allocator.h b/libstdc++-v3/include/bits/allocator.h index e0c322b..f777016 100644 --- a/libstdc++-v3/include/bits/allocator.h +++ b/libstdc++-v3/include/bits/allocator.h @@ -92,7 +92,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION using propagate_on_container_move_assignment = true_type; using is_always_equal - _GLIBCXX20_DEPRECATED_SUGGEST("allocator_traits::is_always_equal") + _GLIBCXX20_DEPRECATED_SUGGEST("std::allocator_traits::is_always_equal") = true_type; #if __cplusplus >= 202002L @@ -146,7 +146,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION using propagate_on_container_move_assignment = true_type; using is_always_equal - _GLIBCXX20_DEPRECATED_SUGGEST("allocator_traits::is_always_equal") + _GLIBCXX20_DEPRECATED_SUGGEST("std::allocator_traits::is_always_equal") = true_type; #endif diff --git a/libstdc++-v3/libsupc++/exception b/libstdc++-v3/libsupc++/exception index a7d6b4b..43f1cf7 100644 --- a/libstdc++-v3/libsupc++/exception +++ b/libstdc++-v3/libsupc++/exception @@ -120,7 +120,7 @@ namespace std * %exception can result in a call of 1terminate()` * (15.5.1).' */ - _GLIBCXX17_DEPRECATED + _GLIBCXX17_DEPRECATED_SUGGEST("std::uncaught_exceptions()") bool uncaught_exception() _GLIBCXX_USE_NOEXCEPT __attribute__ ((__pure__)); #if __cplusplus >= 201703L || !defined(__STRICT_ANSI__) // c++17 or gnu++98 |