From c09adc61988c037a40a9c000415441d56de0cae2 Mon Sep 17 00:00:00 2001 From: redi Date: Tue, 28 Apr 2015 12:07:40 +0000 Subject: * 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 --- libstdc++-v3/libsupc++/exception | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libstdc++-v3/libsupc++') 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 -- cgit v1.2.1