v = 202502;
cxxmin = 26;
extra_cond = "__cpp_constexpr_exceptions >= 202411L";
+ cxx11abi = yes;
};
};
#undef __glibcxx_want_bitset
#if !defined(__cpp_lib_constexpr_exceptions)
-# if (__cplusplus > 202302L) && (__cpp_constexpr_exceptions >= 202411L)
+# if (__cplusplus > 202302L) && _GLIBCXX_USE_CXX11_ABI && (__cpp_constexpr_exceptions >= 202411L)
# define __glibcxx_constexpr_exceptions 202502L
# if defined(__glibcxx_want_all) || defined(__glibcxx_want_constexpr_exceptions)
# define __cpp_lib_constexpr_exceptions 202502L
// { dg-do preprocess { target c++26 } }
// { dg-add-options no_pch }
+// { dg-require-effective-target cxx11_abi }
#include <exception>
return true;
}
+#if _GLIBCXX_USE_CXX11_ABI
static_assert(test01(false));
+#endif
int main()
{
// { dg-do preprocess { target c++26 } }
// { dg-add-options no_pch }
+// { dg-require-effective-target cxx11_abi }
#include <stdexcept>
// { dg-do compile { target c++26 } }
+// { dg-require-effective-target cxx11_abi }
#include <string>
#include <stdexcept>
// { dg-do compile { target c++26 } }
+// { dg-require-effective-target cxx11_abi }
#include <string>
#include <stdexcept>
# error "Feature-test macro for freestanding expected has wrong value in <version>"
#endif
-#if __cplusplus > 202302L
+#if __cplusplus > 202302L && _GLIBCXX_USE_CXX11_ABI
# ifndef __cpp_lib_constexpr_exceptions
# error "Feature test macro for constexpr_exceptions is missing in <version>"
# elif __cpp_lib_constexpr_exceptions < 202502L
# error "Feature-test macro for freestanding expected has wrong value in <expected>"
#endif
-#if __cplusplus > 202302L
+#if __cplusplus > 202302L && _GLIBCXX_USE_CXX11_ABI
# ifndef __cpp_lib_constexpr_exceptions
# error "Feature test macro for constexpr_exceptions is missing in <expected>"
# elif __cpp_lib_constexpr_exceptions < 202502L
# error "Feature test macro for optional range support has wrong value for C++26 in <version>"
# endif
+# if _GLIBCXX_USE_CXX11_ABI
# ifndef __cpp_lib_constexpr_exceptions
# error "Feature test macro for constexpr_exceptions is missing in <version>"
# elif __cpp_lib_constexpr_exceptions < 202502L
# error "Feature test macro for constexpr_exceptions has wrong value in <version>"
# endif
+# endif
#endif
#undef __cpp_lib_optional
# error "Feature test macro for optional range support has wrong value for C++26 in <optional>"
# endif
+# if _GLIBCXX_USE_CXX11_ABI
# ifndef __cpp_lib_constexpr_exceptions
# error "Feature test macro for constexpr_exceptions is missing in <optional>"
# elif __cpp_lib_constexpr_exceptions < 202502L
# error "Feature test macro for constexpr_exceptions has wrong value in <optional>"
# endif
+# endif
#endif
#endif
#endif
-#if __cplusplus > 202302L
+#if __cplusplus > 202302L && _GLIBCXX_USE_CXX11_ABI
#ifndef __cpp_lib_constexpr_exceptions
# error "Feature test macro for constexpr_exceptions is missing in <version>"
#elif __cpp_lib_constexpr_exceptions < 202502L
#endif
#endif
-#if __cplusplus > 202302L
+#if __cplusplus > 202302L && _GLIBCXX_USE_CXX11_ABI
#ifndef __cpp_lib_constexpr_exceptions
# error "Feature test macro for constexpr_exceptions is missing in <variant>"
#elif __cpp_lib_constexpr_exceptions < 202502L