You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stdcxx.apache.org by "Martin Sebor (JIRA)" <ji...@apache.org> on 2005/12/08 22:30:09 UTC

[jira] Closed: (STDCXX-47) [VAC++ 7.0.0.3] conflicting declaration of std::abs in and

     [ http://issues.apache.org/jira/browse/STDCXX-47?page=all ]
     
Martin Sebor closed STDCXX-47:
------------------------------


Fix confirmed.

> [VAC++ 7.0.0.3] conflicting declaration of std::abs in <cmath> and <cstdlib>
> ----------------------------------------------------------------------------
>
>          Key: STDCXX-47
>          URL: http://issues.apache.org/jira/browse/STDCXX-47
>      Project: STDCXX
>         Type: Bug
>   Components: 26. Numerics
>     Versions: 4.1.2
>  Environment: VisuaAge C++ 7.0.0.3
>     Reporter: Martin Sebor
>     Assignee: Martin Sebor
>     Priority: Critical
>      Fix For: 4.1.3

>
> The test case below fails to compile with the August 2005 patch of VAC++ 7.0 (7.0.0.3). 
> $ xlC -qversion
>  IBM XL C/C++ Enterprise Edition V7.0
>  Version: 07.00.0000.0003
> $ cat t.cpp && nice gmake t 
> #include <cmath>
> #include <cstdlib>
> int main ()
> {
>     std::abs (0);
> }
> xlCcore_r -c -I/build/sebor/dev/stdlib/include/ansi -D_RWSTDDEBUG    -D_RWSTD_USE_CONFIG -I/build/sebor/vacpp-7.0.0.3-15S/include -I/build/sebor/dev/stdlib/include -I/build/sebor/dev/stdlib/../rwtest -I/build/sebor/dev/stdlib/../rwtest/include -I/build/sebor/dev/stdlib/tests/include  -g  -q64  -qtemplateregistry=t.ti   t.cpp
> "/build/sebor/dev/stdlib/include/ansi/cstdlib", line 208.16: 1540-0400 (S) "std::abs(int)" has a conflicting declaration.
> "/build/sebor/dev/stdlib/include/ansi/cmath", line 811.1: 1540-0424 (I) "abs" is declared on line 811 of "/build/sebor/dev/stdlib/include/ansi/cmath".
> "/build/sebor/dev/stdlib/include/ansi/cmath", line 770.1: 1540-0424 (I) "abs" is declared on line 770 of "/build/sebor/dev/stdlib/include/ansi/cmath".
> "/build/sebor/dev/stdlib/include/ansi/cmath", line 567.1: 1540-0424 (I) "abs" is declared on line 567 of "/build/sebor/dev/stdlib/include/ansi/cmath".
> gmake: *** [t.o] Error 1

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira