diff options
author | redi <redi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-04-28 12:07:40 +0000 |
---|---|---|
committer | redi <redi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-04-28 12:07:40 +0000 |
commit | c09adc61988c037a40a9c000415441d56de0cae2 (patch) | |
tree | 8c9c0253274739a474e7fafb0efe19f3707be3b1 /libstdc++-v3/libsupc++ | |
parent | 75907ee68dacc603748554e9146ab265a4e9c407 (diff) | |
download | gcc-c09adc61988c037a40a9c000415441d56de0cae2.tar.gz |
* libsupc++/exception (uncaught_exceptions): Add comment. Reorder #if.
* testsuite/18_support/uncaught_exceptions/uncaught_exceptions.cc:
Use -std=gnu++1z. Check feature-test macro.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@222523 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/libsupc++')
-rw-r--r-- | libstdc++-v3/libsupc++/exception | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libstdc++-v3/libsupc++/exception b/libstdc++-v3/libsupc++/exception index 069b33cd8da..5571fd9ac47 100644 --- a/libstdc++-v3/libsupc++/exception +++ b/libstdc++-v3/libsupc++/exception @@ -126,8 +126,9 @@ namespace std */ bool uncaught_exception() _GLIBCXX_USE_NOEXCEPT __attribute__ ((__pure__)); -#if !defined(__STRICT_ANSI__) || __cplusplus > 201402L +#if __cplusplus > 201402L || !defined(__STRICT_ANSI__) // c++1z or gnu++98 #define __cpp_lib_uncaught_exceptions 201411 + /// The number of uncaught exceptions. int uncaught_exceptions() _GLIBCXX_USE_NOEXCEPT __attribute__ ((__pure__)); #endif |