[PATCH] Fix libstdc++-v3/include/math.h:66:1 2: error: 'constexpr bool std::isnan(double)' conflicts with a previous declaration
Fri Feb 5 01:01:00 GMT 2016
On 04/02/16 22:41 +0000, Jonathan Wakely wrote:
>On 04/02/16 17:31 -0500, John David Anglin wrote:
>>On 2016-02-04 5:11 PM, Gerald Pfeifer wrote:
>>>In file included from .././../gcc-6-20160131/gcc/genautomata.c:116:0:
>>>error: 'constexpr bool std::isinf(double)' conflicts with a previous declaration
>>> using std::isinf;
>>>for a full log.
>>The checks for obsolete isinf(double) and isnan(double) are not run
>>on freebsd. Apparently,
>>the checks in acinclude.m4 need to be run on freebsd as well. Maybe
>>the checks should run almost
>Yes, maybe. I didn't realise those functions were so widespread, but
>if they are I'm amazed more people weren't yelling about
>>The problem wasn't introduced by my change but earlier by Jonathan.
>>I added hpux to the list
>>of systems with obsolete defines. The default is to assume there
>>are no obsolete defines.
>I think it should be harmless to run the checks on all systems. If
>they don't have obsolete defines we'll detect that. If they do things
>will start working.
This works on powerpc64-linux (with glibc 2.18 which does define those
functions) and x86_64-freebsd10.2 (which doesn't define them).
Can anyone else test this on an older FreeBSD or other target that
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1515 bytes
Desc: not available
More information about the Libstdc++