This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/7084: locale dependant ICE
- From: fasbjx at free dot fr
- To: gcc-gnats at gcc dot gnu dot org, debian-gcc at lists dot debian dot org
- Date: Fri, 21 Jun 2002 12:49:25 +0200 (CEST)
- Subject: c++/7084: locale dependant ICE
>Number: 7084
>Category: c++
>Synopsis: locale dependant ICE
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: ice-on-illegal-code
>Submitter-Id: net
>Arrival-Date: Thu Jun 20 04:26:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Franck Branjonneau
>Release: 3.1.1 20020606 (Debian prerelease) (Debian testing/unstable)
>Organization:
>Environment:
System: Linux alpha.tchume.net 2.2.20 #1 Sun Mar 10 20:27:27 CET 2002 i586 unknown
Architecture: i586
host: i386-pc-linux-gnu
build: i386-pc-linux-gnu
target: i386-pc-linux-gnu
configured with: /var/tmp/gcc-3.1-3.1.1ds1/src/configure -v --enable-languages=c,c++,java,f77,proto,objc,ada --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/g++-v3-3.1 --enable-shared --with-system-zlib --enable-long-long --enable-nls --without-included-gettext --enable-clocale=gnu --enable-threads=posix --enable-java-gc=boehm --enable-objc-gc i386-linux
>Description:
When compiling the following, illegal, code:
#include <string>
#include <sstream>
using namespace std;
int
main() {
wstring s;
stringstream in("Anything");
in >> s;
}
- with my default locale, fr_FR.ISO8859-1, GCC says:
tmp.cc: Dans function « int main() »:
tmp.cc:511: no match pour l'opérateur «
erreur interne de compilateur: erreur pour rapporter une routine ré-entée
SVP soumettre un rapport complet d'anomalies,
avec le source pré-traité si cela est approprié.
Consulter <URL:http://www.gnu.org/software/gcc/bugs.html> pour les instructions.
- with the system default locale, C, it says:
tmp.cc: In function `int main()':
tmp.cc:511: no match for `std::stringstream& >> std::wstring&' operator
/usr/include/g++-v3-3.1/bits/istream.tcc:82: candidates are:
[...]
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: