[ http://issues.apache.org/jira/browse/STDCXX-46?page=all ]
Martin Sebor resolved STDCXX-46:
--------------------------------
Resolution: Fixed
With the changes (and after reconfiguring the library) the small test case compiles successfully,
as does the test.
> [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
|