Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion include/boost/math/cstdfloat/cstdfloat_limits.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#pragma GCC system_header
#endif

#if defined(BOOST_CSTDFLOAT_HAS_INTERNAL_FLOAT128_T) && defined(BOOST_MATH_USE_FLOAT128) && !defined(BOOST_CSTDFLOAT_NO_LIBQUADMATH_SUPPORT)
#if defined(BOOST_CSTDFLOAT_HAS_INTERNAL_FLOAT128_T) && defined(BOOST_MATH_USE_FLOAT128) && !defined(BOOST_CSTDFLOAT_NO_LIBQUADMATH_SUPPORT) && (!defined(__GNUC__) || (defined(__GNUC__) && __GNUC__ < 14))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This check seems wrong. The new numeric_limits<__float128> specialization will be enabled when using new libstdc++ headers with Clang, which does not define __GNUC__ to 14 (it can be told to use any value, but by default it defines it to 4).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checking _GLIBCXX_RELEASE < 14 would be more correct, as that is determined by the libstdc++ headers, not by the compiler including them.


#include <limits>
#include <boost/math/tools/nothrow.hpp>
Expand Down