https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110353
Diego Garcia <diego.garcia.cr at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |diego.garcia.cr at gmail dot
com
--- Comment #1 from Diego Garcia <diego.garcia.cr at gmail dot com> ---
I would like to add to this that some <cmath> functions (such as nextafter and
nexttoward) have been constexpr since C++23, they are marked as such, but the
internals aren't constexpr, leading to errors:
main.cpp:4:57: in ‘constexpr’ expansion of ‘std::nextafter(0.0f, 1.0e+0f)’
/opt/gcc-15/include/c++/15.1.0/cmath:2629:32: error:
‘__builtin_nextafterf(0.0f, 1.0e+0f)’ is not a constant expression
2629 | { return __builtin_nextafterf(__x, __y); }
| ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
Not sure if this would be a separate bug (due to being C++23 related) or still
part of this