This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
bug in g++
- From: simon at u-bourgogne dot fr
- To: bug-gcc at gnu dot org
- Date: Tue, 15 Apr 2003 20:55:13 +0200
- Subject: bug in g++
- Reply-to: simon at u-bourgogne dot fr
Culprit: The following source file named "bug.cc"
#include <iostream>
int main(int argc, char **argv)
{
std::cout << "Hello" < std::endl ;
return 0 ;
}
1) On Redhat 8.0 it leads to ICE:
------------------------------
[simon at dhcppc1 simon]$ gcc -c bug.cc &
[1] 1637
[simon at dhcppc1 simon]$ bug.cc: Dans function « int main(int, char**) »:
bug.cc:4: 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://bugzilla.redhat.com/bugzilla/> pour les instructions.
[simon at dhcppc1 simon]$ gcc -v
Lecture des spécification à partir de /usr/lib/gcc-lib/i386-redhat-linux/3.2/specs
Configuré avec: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --hoost=i386-redhat-linux --with-system-zlib --enable-__cxa_atexit
Modèle de thread: posix
version gcc 3.2 20020903 (Red Hat Linux 8.0 3.2-7)
[1]+ Exit 1 gcc -c bug.cc
[simon at dhcppc1 simon]$
2) While on Mandrake 9.0:
-------------------------
[simon at localhost simon]$ gcc -c bug.cc &
[1] 1421
[simon at localhost simon]$ bug.cc: In function `int main(int, char**)':
bug.cc:4: no match for `std::basic_ostream<char, std::char_traits<char> >& < <unknown type>' operator
[1]+ Exit 1 gcc -c bug.cc
[simon at localhost simon]$ gcc -v
Reading specs from /usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2/specs
Configured with: ../configure --prefix=/usr --libdir=/usr/lib --with-slibdir=/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enablee-threads=posix --disable-checking --enable-long-long --enable-__cxa_atexit --enable-languages=c,c++,ada,f77,objc,java --host=i586-mandrake-linux-gnu --with-system-zlib
Thread model: posix
gcc version 3.2 (Mandrake Linux 9.0 3.2-1mdk)
[simon at localhost simon]$
Jacques C. H. Simon
Université de Bourgogne
UFR Sciences et Techniques
Département de mathématiques
B.P. 47870
21078 Dijon Cedex
e-mail simon at u-bourgogne dot fr