Details
-
Bug
-
Status: Closed
-
Blocker
-
Resolution: Fixed
-
4.1.2
-
None
-
VisuaAge C++ 7.0.0.3
Description
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