This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Bug-Report egcs-2.90.29 980515
- To: egcs-bugs at cygnus dot com
- Subject: Bug-Report egcs-2.90.29 980515
- From: (Marc Jackisch) <mtj at online-club dot de>
- Date: Wed, 20 Jan 1999 08:59:12 +0100 (MET)
Hi,
upon trying to compile doc++ on a linux system, the compiler bailed out
with "please post a full bug report". As I have been able to reproduce the
bug in a short self-contained source (without understanding too much of
what I cut & pasted, as I am no C++ programmer at all), here it is.
Hopefully the information is sufficient, please ask if you need more.
- the source file:
template<class T>
void sort(T* t, int n)
{
struct {
int operator()(T i, T j) {
return (i < j) ? -1 : ((j < i) ? 1 : 0) ;
}
} c ;
sort(t, n, c, 0) ;
}
- the compiler call and output:
> g++ main.cc
main.cc: In function `void sort(T *, int)':
main.cc:4: Internal compiler error.
main.cc:4: Please submit a full bug report to `egcs-bugs@cygnus.com'.
- compiler version:
> g++ --version
egcs-2.90.29 980515 (egcs-1.0.3 release)
- system:
RedHat linux 5.2 distribution (kernel 2.0.36) on a Pentium II, 400
- compiler installation:
original RedHat distribution rpm, precompiled. (I.e. options to configure
are unknown.)
Bye, Marc.
--
Marc Jackisch, Von-Holstein-Str. 16, 40764 Langenfeld, Germany
mtj@online-club.de -- http://www.online-club.de/m4/mtj-home/