bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: signbit issues


From: Orion Poplawski
Subject: Re: signbit issues
Date: Fri, 19 Feb 2016 12:32:52 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0

On 02/19/2016 11:39 AM, Paul Eggert wrote:
> On 02/18/2016 10:52 AM, Orion Poplawski wrote:
>> Any ideas anyone?
> 
> I'm afraid I don't understand your email, as it's ouit of context. Perhaps you
> could try sending another email with a complete, self-contained test case
> illustrating the bug.

Okay, let's try this:

https://github.com/opoplawski/signbit

So, if you check it out and run:

gnulib-tool --import signbit
autoreconf -f -i
./configure
make

with gcc 6 you will get:

make[2]: Entering directory '/home/orion/signbit/src'
g++ -DHAVE_CONFIG_H -I. -I..  -I../lib   -g -O2 -MT foobar.o -MD -MP -MF
.deps/foobar.Tpo -c -o foobar.o foobar.cpp
In file included from foobar.cpp:3:0:
../lib/math.h: In function ‘int signbit(float)’:
../lib/math.h:2576:1: error: ‘int signbit(float)’ conflicts with a previous
declaration
 _GL_MATH_CXX_REAL_FLOATING_DECL_2 (signbit)
 ^
In file included from foobar.cpp:2:0:
/usr/include/c++/6.0.0/cmath:681:3: note: previous declaration ‘constexpr bool
std::signbit(float)’
   signbit(float __x)
   ^~~~~~~
In file included from foobar.cpp:3:0:
../lib/math.h: In function ‘int signbit(double)’:
../lib/math.h:2576:1: error: ‘int signbit(double)’ conflicts with a previous
declaration
 _GL_MATH_CXX_REAL_FLOATING_DECL_2 (signbit)
 ^
In file included from foobar.cpp:2:0:
/usr/include/c++/6.0.0/cmath:685:3: note: previous declaration ‘constexpr bool
std::signbit(double)’
   signbit(double __x)
   ^~~~~~~
In file included from foobar.cpp:3:0:
../lib/math.h: In function ‘int signbit(long double)’:
../lib/math.h:2576:1: error: ‘int signbit(long double)’ conflicts with a
previous declaration
 _GL_MATH_CXX_REAL_FLOATING_DECL_2 (signbit)
 ^
In file included from foobar.cpp:2:0:
/usr/include/c++/6.0.0/cmath:689:3: note: previous declaration ‘constexpr bool
std::signbit(long double)’
   signbit(long double __x)
   ^~~~~~~
Makefile:641: recipe for target 'foobar.o' failed


-- 
Orion Poplawski
Technical Manager                     303-415-9701 x222
NWRA, Boulder/CoRA Office             FAX: 303-415-9702
3380 Mitchell Lane                       address@hidden
Boulder, CO 80301                   http://www.nwra.com



reply via email to

[Prev in Thread] Current Thread [Next in Thread]