From mboxrd@z Thu Jan 1 00:00:00 1970 From: cate@debian.org To: gcc-gnats@gcc.gnu.org Subject: libstdc++/3026: namespace errors in and other .h Date: Fri, 01 Jun 2001 03:36:00 -0000 Message-id: <20010601103255.14688.qmail@sourceware.cygnus.com> X-SW-Source: 2001-06/msg00004.html List-Id: >Number: 3026 >Category: libstdc++ >Synopsis: namespace errors in and other .h >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: rejects-legal >Submitter-Id: net >Arrival-Date: Fri Jun 01 03:36:00 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Giacomo Catenazzi >Release: gcc version 3.0 20010531 (prerelease) >Organization: >Environment: (I used the gcc online compiler) Reading specs from /usr/local/bin/../lib/gcc-lib/i386-pc-linux-gnu/3.0/specs Configured with: ../configure --prefix=/tmp/gcc-20010531-root/usr/local --enable-shared --enable-threads --disable-checking i386-pc-linux-gnu Thread model: posix gcc version 3.0 20010531 (prerelease) /usr/local/bin/../lib/gcc-lib/i386-pc-linux-gnu/3.0/cc1plus -v -iprefix /usr/local/bin/../lib/gcc-lib/i386-pc-linux-gnu/3.0/ -D__GNUC__=3 -D__GNUC_MINOR__=0 -D__GNUC_PATCHLEVEL__=0 -D__ELF__ -Dunix -Dlinux -D__ELF__ -D__unix__ -D__linux__ -D__unix -D__linux -Asystem=posix -D__STDC_HOSTED__=1 -Acpu=i386 -Amachine=i386 -Di386 -D__i386 -D__i386__ -D__tune_i386__ /usr/tmp/@10975.7.cc -D__GNUG__=3 -D_GNU_SOURCE -D__GXX_DEPRECATED -D__EXCEPTIONS -D__GXX_ABI_VERSION=100 -quiet -dumpbase @10975.7.cc -version -o /tmp/ccP6Guhr.s GNU CPP version 3.0 20010531 (prerelease) (cpplib) (i386 Linux/ELF) GNU C++ version 3.0 20010531 (prerelease) (i386-pc-linux-gnu) compiled by GNU C version 3.0 20010531 (prerelease). >Description: namespace foo { #include } I find the following errors, caused mainly by use of ::foo instead of std::foo (and other small implementation error of templates) In file included from /usr/local/include/g++-v3/bits/std_cstdlib.h:40, from /usr/local/include/g++-v3/bits/std_cmath.h:40, from /usr/local/include/g++-v3/bits/std_complex.h:43, from /usr/local/include/g++-v3/backward/complex.h:32, from /usr/tmp/@17861.7.cc:2: /usr/local/include/g++-v3/bits/std_cstddef.h:44: `ptrdiff_t' not declared /usr/local/include/g++-v3/bits/std_cstddef.h:45: `size_t' not declared In file included from /usr/local/include/g++-v3/bits/std_cmath.h:40, from /usr/local/include/g++-v3/bits/std_complex.h:43, from /usr/local/include/g++-v3/backward/complex.h:32, from /usr/tmp/@17861.7.cc:2: /usr/local/include/g++-v3/bits/std_cstdlib.h:85: `div_t' not declared /usr/local/include/g++-v3/bits/std_cstdlib.h:86: `ldiv_t' not declared /usr/local/include/g++-v3/bits/std_cstdlib.h: In function `long int foo::std::abs(long int)': /usr/local/include/g++-v3/bits/std_cstdlib.h:122: `::labs' undeclared (first use here) /usr/local/include/g++-v3/bits/std_cstdlib.h: In function `foo::ldiv_t foo::std::div(long int, long int)': /usr/local/include/g++-v3/bits/std_cstdlib.h:125: `::ldiv' undeclared (first use here) /usr/local/include/g++-v3/bits/std_cstdlib.h: At global scope: /usr/local/include/g++-v3/bits/std_cstdlib.h:131: `lldiv_t' not declared /usr/local/include/g++-v3/bits/std_cstdlib.h:158: `lldiv_t' not declared In file included from /usr/local/include/g++-v3/bits/std_complex.h:43, from /usr/local/include/g++-v3/backward/complex.h:32, from /usr/tmp/@17861.7.cc:2: /usr/local/include/g++-v3/bits/std_cmath.h: In function `float foo::std::acos(float)': /usr/local/include/g++-v3/bits/std_cmath.h:111: `::acosf' undeclared (first use here) /usr/local/include/g++-v3/bits/std_cmath.h: In function `long double foo::std::acos(long double)': /usr/local/include/g++-v3/bits/std_cmath.h:121: `::acosl' undeclared (first use here) /usr/local/include/g++-v3/bits/std_cmath.h: In function `float foo::std::asin(float)': /usr/local/include/g++-v3/bits/std_cmath.h:131: `::asinf' undeclared (first use here) >How-To-Repeat: namespace foo { #include } >Fix: >Release-Note: >Audit-Trail: >Unformatted: