This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Bug-Report egcs-2.90.29 980515


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/



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]