[PATCH] Fix libstdc++-v3/include/math.h:66:1 2: error: 'constexpr bool std::isnan(double)' conflicts with a previous declaration

Jonathan Wakely jwakely@redhat.com
Mon Feb 8 16:01:00 GMT 2016

On 06/02/16 15:31 +0000, Jonathan Wakely wrote:
>On 6 February 2016 at 12:51, Gerald Pfeifer <gerald@pfeifer.com> wrote:
>> On Fri, 5 Feb 2016, Jonathan Wakely wrote:
>>> Can anyone else test this on an older FreeBSD or other target that
>>> isn't gnu/aix/hpux?
>> Thank you, Jonathan!
>> I did not have such an older environment available, but now
>> could install the infrastructure and get all prerequisites in place for
>> FreeBSD 9.3/AMD64 testing.
>> That allowed to both reproduce the original failure and confirm
>> that it does not occur any more with your proposed patch.
>OK, thanks. I'll commit it on Monday (with a slight tweak).

This enables the isinf/isnan checks everywhere and also adds #define
_GLIBCXX_INCLUDE_NEXT_C_HEADERS to the configure test, to ensure that
it finds the libc math.h and not an already installed libstdc++
wrapper (which would confuse the test). I also accidentally committed
a change to add 'constexpr' to the configure test, which I reverted.

Tested powerp64-linux, committed to trunk.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 2815 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20160208/0879c04b/attachment.bin>

More information about the Libstdc++ mailing list