https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114018
--- Comment #11 from Jakub Jelinek <jakub at gcc dot gnu.org> --- But what about following: #include <cmath> #include <stdfloat> auto f = static_cast<std::float128_t (*)(std::float128_t, long double)>(&std::nexttoward); This doesn't call std::nexttoward(std::float128_t, long double), just checks if it is defined.