stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Sebor (JIRA)" <j...@apache.org>
Subject [jira] Closed: (STDCXX-46) [VAC++ 7.0.0.3] duplicate definition of std::div in <cstdlib>
Date Thu, 08 Dec 2005 21:30:10 GMT
     [ http://issues.apache.org/jira/browse/STDCXX-46?page=all ]
     
Martin Sebor closed STDCXX-46:
------------------------------


Fix confirmed.

> [VAC++ 7.0.0.3] duplicate definition of std::div in <cstdlib>
> -------------------------------------------------------------
>
>          Key: STDCXX-46
>          URL: http://issues.apache.org/jira/browse/STDCXX-46
>      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: Blocker
>      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 <cstdlib>
> int main ()
> {
>     std::div (1L, 2L);
> }
> 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 219.5: 1540-0427 (S) The using declaration
introduces "div" in conflict with a declaration in this scope.
> "/build/sebor/dev/stdlib/include/ansi/cstdlib", line 150.19: 1540-0424 (I) "std::div"
is declared on line 150 of "/build/sebor/dev/stdlib/include/ansi/cstdlib".
> "/nfs/packages/mdx/aix/compilers/5.2.0/va70_20050831/root/usr/vacpp/include/../include/stdlib.h",
line 130.36: 1540-0424 (I) "div" is declared on line 130 of "/nfs/packages/mdx/aix/compilers/5.2.0/va70_20050831/root/usr/vacpp/include/../include/stdlib.h".
> 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


Mime
View raw message