This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Internal compiler error, egcs release 1.1b, --version egcs-2.91.57
- To: egcs-bugs at cygnus dot com
- Subject: Internal compiler error, egcs release 1.1b, --version egcs-2.91.57
- From: temporary user <maciejr at hiwi-pc1 dot bauingenieure dot uni-stuttgart dot de>
- Date: Wed, 16 Sep 1998 17:03:31 +0200
// Internal compiler error with egcs release 1.1b
// I am learning STL and trying to see what is legal I have triggered an internal compiler error.
// This is a stripped version. Compiling with
//
// g++ string_old_iter.cpp
//
// results in an error:
//
// string_old_iter.cpp:14: Internal compiler error.
// string_old_iter.cpp:14: Please submit a full bug report to `egcs-bugs@cygnus.com'.
#include <algorithm>
// If I comment the next line out,
#include <functional>
// I get another message:
//
// g++: Internal compiler error: program cc1plus got fatal signal 11
//
// If I try to simplify the code by removing the irrelevant 'val' parameter
// from the function definition and from the call,
// the error message changes to the shorter one again.
template<class C, class T> int count (const C& v, const T val)
{
typename C::const_iterator i = v.begin();
return i;
}
int main()
{
char s[] = "an old style string";
int c = count (s, 'n');
}
// I am using egcs 1.1b, --version == egcs-2.91.57.
// The machine I am using is Pentium II 333 MHz, 64MB RAM,
// Linux from Suse 5.3. distribution, displays 'Linux version 2.0.35 (gcc 2.7.2.1)'
// when starting up, uses libc5.4.46 apparently.
// When building egcs, I ran the configure script with no options. It has recognised
// my platform as i686-pc-linux-gnulibc1 -- I suppose it is the same thing as libc5.
// Then I did 'make bootstrap' and 'make install' as suggested in the instructions,
// all options default.
// Binutils version is 2.9.1.0.7, obtained as libc5 binaries and installed before
// downloading egcs.
//
// Certainly this problem does not matter in real use.
// Great thanks for all the new features!
//
// sincerely,
//
// Maciej Radziejewski.