[Bug libstdc++/48933] Infinite recursion in tr1/cmath functions with complex parameters

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon May 9 10:49:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48933

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-05-09 10:46:40 UTC ---
Yes, we should disable the TR1 math functions for anything that isn't integral
or floating point, because it happens with any non-integral, non-float type:

#include <tr1/cmath>

struct Foo { };

int main()
{
    std::tr1::acosh( Foo() );
}



More information about the Gcc-bugs mailing list