File tree Expand file tree Collapse file tree 4 files changed +10
-1
lines changed Expand file tree Collapse file tree 4 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 112017-09-20 Jonathan Wakely <
[email protected] >
22
3+ PR libstdc++/81469
4+ * libsupc++/exception (uncaught_exception): Deprecate for C++17.
5+ * testsuite/18_support/exception_ptr/62258.cc: Add -Wno-deprecated.
6+ * testsuite/18_support/uncaught_exception/14026.cc: Likewise.
7+
38 * include/bits/c++config (_GLIBCXX17_DEPRECATED): Define.
49 * include/bits/functional_hash.h (__hash_base::result_type)
510 (__hash_base::argument_type): Add _GLIBCXX17_DEPRECATED.
Original file line number Diff line number Diff line change @@ -98,9 +98,10 @@ namespace std
9898 * %exception can result in a call of @c terminate()
9999 * (15.5.1).'
100100 */
101+ _GLIBCXX17_DEPRECATED
101102 bool uncaught_exception () _GLIBCXX_USE_NOEXCEPT __attribute__ ((__pure__));
102103
103- #if __cplusplus > 201402L || !defined(__STRICT_ANSI__) // c++1z or gnu++98
104+ #if __cplusplus > 201402L || !defined(__STRICT_ANSI__) // c++17 or gnu++98
104105#define __cpp_lib_uncaught_exceptions 201411
105106 // / The number of uncaught exceptions.
106107 int uncaught_exceptions () _GLIBCXX_USE_NOEXCEPT __attribute__ ((__pure__));
Original file line number Diff line number Diff line change 1+ // { dg-options "-Wno-deprecated" }
12// { dg-do run { target c++11 } }
23
34// Copyright (C) 2015-2017 Free Software Foundation, Inc.
Original file line number Diff line number Diff line change 1818// PR 14026
1919// 18.6.4 uncaught_exception
2020
21+ // { dg-options "-Wno-deprecated" }
22+
2123#include < cstdlib>
2224#include < exception>
2325#include < testsuite_hooks.h>
You can’t perform that action at this time.
0 commit comments