From b45121da64af8ae4cf8d4eca7dc3260c7f05307f Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Mon, 2 Jan 2017 23:27:42 +0000 Subject: [PATCH] Fix use of throw(...) spec with GCC in C++17 git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@290845 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/new | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/new b/include/new index 6b432f231..442e11366 100644 --- a/include/new +++ b/include/new @@ -162,7 +162,7 @@ _LIBCPP_FUNC_VIS new_handler get_new_handler() _NOEXCEPT; } // std -#if !__has_feature(cxx_noexcept) +#if defined(_LIBCPP_CXX03_LANG) #define _THROW_BAD_ALLOC throw(std::bad_alloc) #else #define _THROW_BAD_ALLOC