Strange C++ function pointer test
Jonathan Wakely
jwakely.gcc@gmail.com
Thu Dec 31 12:43:00 GMT 2015
On 31 December 2015 at 11:54, Dominik Vogt wrote:
> Is there a requirement for a certain minimum Glibc version for
> this to work?
It doesn't work with any glibc, because it doesn't declare the C++ overloads.
Libstdc++ has an include/c_compatibility/math.h header that would
include <cmath> (which declares the C++ overloads) and then pull them
into the global namespace, but that isn't used on GNU/Linux, and would
create other problems.
This is already in Bugzilla: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60401
More information about the Gcc
mailing list