This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
gcc-3.0.3: libstdc++/5045 and /3720 unsuffciently resolved?
- From: Markus Werle <numerical dot simulation at web dot de>
- To: gcc-bugs at gcc dot gnu dot org
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Tue, 05 Feb 2002 14:52:05 +0100
- Subject: gcc-3.0.3: libstdc++/5045 and /3720 unsuffciently resolved?
Hi folks!
The problems described at
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=3720&database=gcc
and
http://gcc.gnu.org/ml/libstdc++/2001-12/msg00158.html
seem not to be resolved with gcc-3.0.3 on i686-pc-linux-gnu and hppa-2.0w
Even gcc-20020131 has a problem with this code.
I tried to compile the following code:
#include <string>
#include <iostream>
#include <locale>
#include <iostream>
#include <iterator>
int main()
{
std::locale loc;
typedef std::istreambuf_iterator<char> ist_it;
ist_it beg = ist_it(std::cin);
ist_it end = ist_it();
std::ios_base& fmt = std::cin;
std::ios_base::iostate err = std::ios_base::goodbit;
double value;
std::num_get<char, ist_it> const& ng
= std::use_facet<std::num_get<char, ist_it> >(loc);
ng.get(beg, end, fmt, err, value);
std::cout << "value: " << value << std::endl;
}
The resulting executable does not terminate nor
have any output on linux
Reading specs from /opt/gcc-3.0.3a/lib/gcc-lib/i686-pc-linux-gnu/3.0.3/specs
Configured with: /work/tresca/markus/GCC/gcc-3.0.3/configure --prefix=/opt/gcc-3.0.3a --disable-nls --enable-shared --with-gnu-as
--with-as=/opt/gcc-3.0.3a/bin/as --with-gnu-ld --with-ld=/opt/gcc-3.0.3a/bin/ld --enable-version-specific-runtime-libs --enable-languages=c,c++,f77
Thread model: single
gcc version 3.0.3
On hpux-11.0 the (buggy) gcc-3.0.3 is unexpectedly able to
compile the code snippet, but the executable terminates without _any_ output.
With gcc-20020131 on hpux-11.0 the program refuses to terminate like on linux
Reading specs from /opt/precompiled/gcc-3.0.3-32/lib/gcc-lib/hppa2.0w-hp-hpux11.00/3.0.3/specs
Configured with: ../gcc-3.0.3/configure --prefix=/opt/precompiled/gcc-3.0.3-32 --enable-shared -with-gnu-as --with-as=/opt/precompiled/gcc-3.0.3-32/bin/as
--without-gnu-ld --with-ld=/usr/ccs/bin/ld --enable-version-specific-runtime-libs --enable-languages=c,c++,f77
Thread model: single
gcc version 3.0.3
/opt/precompiled/gcc-20020131/bin/g++ GCCStdStringBug.C -v
Reading specs from /opt/precompiled/gcc-20020131/lib/gcc-lib/hppa2.0w-hp-hpux11.00/3.1/specs
Configured with: ../gcc/configure --prefix=/opt/precompiled/gcc-20020131 --enable-shared --with-gnu-as --with-as=/opt/precompiled/gcc-20020131/bin/as
--without-gnu-ld --with-ld=/usr/ccs/bin/ld --enable-version-specific-runtime-libs --enable-languages=c,c++,f77
Thread model: single
gcc version 3.1 20020131 (experimental)
/opt/precompiled/gcc-20020131/lib/gcc-lib/hppa2.0w-hp-hpux11.00/3.1/cc1plus -v -iprefix
/opt/cygnus/hppa-000310/H-hppa2.0w-hp-hpux11.00/lib/gcc-lib/hppa2.0w-hp-hpux11.00/3.1/ -D__GNUC__=3 -D__GNUC_MINOR__=1 -D__GNUC_PATCHLEVEL__=0 -Dhppa
-Dhp9000s800 -D__hp9000s800 -Dhp9k8 -DPWB -Dhpux -Dunix -D__hppa__ -D__hp9000s800__ -D__hp9000s800 -D__hp9k8__ -D__PWB__ -D__hpux__ -D__unix__ -D__hppa
-D__hp9000s800 -D__hp9k8 -D__PWB -D__hpux -D__unix -Asystem=unix -Asystem=hpux -Acpu=hppa -Amachine=hppa -D__NO_INLINE__ -D__STDC_HOSTED__=1 -D_HPUX_SOURCE
-D_HIUX_SOURCE -D__STDC_EXT__ -D_INCLUDE_LONGLONG -D_PA_RISC1_1 -D__hp9000s700 GCCStdStringBug.C -D__GNUG__=3 -D__DEPRECATED -D__EXCEPTIONS
-D__GXX_ABI_VERSION=100 -quiet -dumpbase GCCStdStringBug.C -version -o /var/tmp//ccEshuSa.s
GNU CPP version 3.1 20020131 (experimental) (cpplib) (hppa)
GNU C++ version 3.1 20020131 (experimental) (hppa2.0w-hp-hpux11.00)
compiled by GNU C version 3.1 20020131 (experimental).
Markus