stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Sebor (JIRA)" <>
Subject [jira] Created: (STDCXX-46) [VAC++] duplicate definition of std::div in <cstdlib>
Date Thu, 13 Oct 2005 20:02:07 GMT
[VAC++] duplicate definition of std::div in <cstdlib>

         Key: STDCXX-46
     Project: STDCXX
        Type: Bug
  Components: 26. Numerics  
    Versions: 4.1.2    
 Environment: VisuaAge C++
    Reporter: Martin Sebor
 Assigned to: 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 (

$ 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-
-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".
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:
For more information on JIRA, see:

View raw message