-
Notifications
You must be signed in to change notification settings - Fork 226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disable numeric_limits specialization for GCC-14 #993
Conversation
I built GCC from source, |
Just checking.... does libstdc++3 encase |
It does have an |
Ah, nothing useful there then, this all looks good to me then. |
@@ -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)) |
There was a problem hiding this comment.
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).
There was a problem hiding this comment.
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.
FWIW the current code uses slightly different conditions: That was changed by https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=6261d10521f9fdc2a43d54b4dc365025288aa8e9 |
Closes: #992