Package: g++-3.1
Version: 1:3.1.1-0pre2
Severity: normal

Create an empty file, with only these three lines:

        #include <string>
        #include <vector>
        #include <iostream>

Compile it with g++-3.1 foo.cc, which yields the following:

        In file included from /usr/include/g++-v3-3.1/bits/basic_ios.h:41,
                         from /usr/include/g++-v3-3.1/ios:51,
                         from /usr/include/g++-v3-3.1/ostream:45,
                         from /usr/include/g++-v3-3.1/iostream:45,
                         from foo.cc:3:
        /usr/include/g++-v3-3.1/bits/locale_facets.h:1114: internal error: 
Segmentation fault
        Please submit a full bug report,
        with preprocessed source if appropriate.
        See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.

(The preprocessed code is available on request.)  The choice of
options to g++, or the environment don't really seem to make a
difference.  What does make a difference, is what headers are
included.  If i leave out vector, it gets:

        In file included from /usr/include/g++-v3-3.1/bits/codecvt.h:333,
                         from /usr/include/g++-v3-3.1/bits/locale_facets.h:422,
                         from /usr/include/g++-v3-3.1/bits/basic_ios.h:41,
                         from /usr/include/g++-v3-3.1/ios:51,
                         from /usr/include/g++-v3-3.1/ostream:45,
                         from /usr/include/g++-v3-3.1/iostream:45,
                         from stl-vector-test.cc:2:
        /usr/include/g++-v3-3.1/i386-linux/bits/codecvt_specializations.h:175: 
internal
           error: Segmentatie fout
        Please submit a full bug report,
        with preprocessed source if appropriate.
        See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.

Leaving out string _and_ vector makes it compile.

Leaving out only string gives the error as above (the first one).

Actually, the exact location of the error seems to differ:

        In file included from /usr/include/g++-v3-3.1/ostream:275,
                         from /usr/include/g++-v3-3.1/iostream:45,
                         from stl-vector-test.cc:2:
        /usr/include/g++-v3-3.1/bits/ostream.tcc:203: internal error: 
Segmentation
           fault


Hope you can make sense of all this :)


-- System Information
Debian Release: 3.0
Architecture: i386
Kernel: Linux spark 2.4.18-xfs-1.1 #3 do apr 25 13:15:27 CEST 2002 i586
Locale: LANG=C, [EMAIL PROTECTED]

Versions of packages g++-3.1 depends on:
ii  gcc-3.1                    1:3.1.1-0pre2 The GNU C compiler.
ii  gcc-3.1-base               1:3.1.1-0pre2 The GNU Compiler Collection (base 
ii  libc6                      2.2.5-6       GNU C Library: Shared libraries an
ii  libstdc++4-dev             1:3.1.1-0pre2 The GNU stdc++ library version 3 (

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]


Reply via email to