CURRENT: CLANG 3.3 and -stad=c++11 and -stdlib=libc++: isnan()/isninf() oddity

2013-07-10 Thread O. Hartmann
Whe I try to compile the sources of a port in spe (devel/pocl), which is now out as RC6, I receive this error shown below: [...] ../vecmathlib/pocl/../vec_sse_double1.h:451:38: error: conversion from 'int' to 'boolvec_t' (aka 'boolvec') is ambiguous boolvec_t isinf() const { return std::isinf(v);

Re: CURRENT: CLANG 3.3 and -stad=c++11 and -stdlib=libc++: isnan()/isninf() oddity

2013-07-10 Thread David Chisnall
Hi, On 10 Jul 2013, at 14:58, "O. Hartmann" wrote: > > Whe I try to compile the sources of a port in spe (devel/pocl), which > is now out as RC6, I receive this error shown below: > > [...] > ../vecmathlib/pocl/../vec_sse_double1.h:451:38: error: > conversion from 'int' to 'boolvec_t' (aka 'bo

Re: CURRENT: CLANG 3.3 and -stad=c++11 and -stdlib=libc++: isnan()/isninf() oddity

2013-07-10 Thread O. Hartmann
On Wed, 10 Jul 2013 15:22:58 +0100 David Chisnall wrote: > Hi, > > On 10 Jul 2013, at 14:58, "O. Hartmann" > wrote: > > > > > Whe I try to compile the sources of a port in spe (devel/pocl), > > which is now out as RC6, I receive this error shown below: > > > > [...] > > ../vecmathlib/pocl/..

Re: CURRENT: CLANG 3.3 and -stad=c++11 and -stdlib=libc++: isnan()/isninf() oddity

2013-07-10 Thread David Chisnall
On 10 Jul 2013, at 17:33, "O. Hartmann" wrote: > Hi David, > > thanks for the fast response. > > The code I was told to check with is this: > > #include > #include > #include > > int > main(void) > { > >std::cout << typeid(isnan(1.0)).name() << "\n"; > > } > > > If I compile it

Re: CURRENT: CLANG 3.3 and -stad=c++11 and -stdlib=libc++: isnan()/isninf() oddity

2013-07-10 Thread O. Hartmann
On Wed, 10 Jul 2013 18:04:16 +0100 David Chisnall wrote: > On 10 Jul 2013, at 17:33, "O. Hartmann" > wrote: > > > Hi David, > > > > thanks for the fast response. > > > > The code I was told to check with is this: > > > > #include > > #include > > #include > > > > int > > main(void) > > {

Re: CURRENT: CLANG 3.3 and -stad=c++11 and -stdlib=libc++: isnan()/isninf() oddity

2013-07-10 Thread Tijl Coosemans
On 2013-07-10 20:32, O. Hartmann wrote: > On Wed, 10 Jul 2013 18:04:16 +0100 > David Chisnall wrote: > >> On 10 Jul 2013, at 17:33, "O. Hartmann" >> wrote: >> >>> Hi David, >>> >>> thanks for the fast response. >>> >>> The code I was told to check with is this: >>> >>> #include >>> #include >>

Re: CURRENT: CLANG 3.3 and -stad=c++11 and -stdlib=libc++: isnan()/isninf() oddity

2013-07-10 Thread Garrett Wollman
< said: > I think isnan(double) and isinf(double) in math.h should only be > visible if (_BSD_VISIBLE || _XSI_VISIBLE) && __ISO_C_VISIBLE < 1999. > For C99 and higher there should only be the isnan/isinf macros. I believe you are correct. POSIX.1-2008 (which is aligned with C99) consistently cal

Re: CURRENT: CLANG 3.3 and -stad=c++11 and -stdlib=libc++: isnan()/isninf() oddity

2013-07-10 Thread Bruce Evans
On Wed, 10 Jul 2013, Garrett Wollman wrote: < said: I think isnan(double) and isinf(double) in math.h should only be visible if (_BSD_VISIBLE || _XSI_VISIBLE) && __ISO_C_VISIBLE < 1999. For C99 and higher there should only be the isnan/isinf macros. I believe you are correct. POSIX.1-2008 (