This is the mail archive of the 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]

Internal compiler error (SunOS 4.1.4)

Sorry if this is already known or corrected in the current 
snapshot ...

I am trying to compiler the following source
(Its originally from a bigger software package...)

template< class T >
void    sort( T* t, int n )
                int     operator()(T i, T j)
                            return (i < j) ? -1 : ((j < i) ? 1 : 0) ;
            } c ;
            sort(t, n, c, 0) ;

int main ()
  return 0;

Reading specs from
gcc version egcs-2.90.23 980102 (egcs-1.0.1 release)
-lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus
-D__GNUC_MINOR__=90 -Dsparc -Dsun -Dunix -D__sparc__ -D__sun__
-D__unix__ -D__sparc -D__sun -D__unix -Asystem(unix) -Asystem(bsd)
-D__EXCEPTIONS -D__GCC_NEW_VARARGS__ -Acpu(sparc) -Amachine(sparc)
t2.cpp /usr/tmp/cca05562.ii
GNU CPP version egcs-2.90.23 980102 (egcs-1.0.1 release) (sparc)
#include "..." search starts here:
#include <...> search starts here:
End of search list.
/usr/tmp/cca05562.ii -quiet -dumpbase -version -o
GNU C++ version egcs-2.90.23 980102 (egcs-1.0.1 release)
(sparc-sun-sunos4.1.3_U1) compiled by GNU C version egcs-2.90.23 980102
(egcs-1.0.1 release).
t2.cpp: In function `void sort(T *, int)':
t2.cpp:5: Internal compiler error.
t2.cpp:5: Please submit a full bug report to `'.
Exit 1

The egcs version installed is:
  egcs-2.90.23 980102 (egcs-1.0.1 release)


Johann Petrak                       Email:
Austrian Research Institute for AI  Phone:     +43-1-533-61-12/13
Schottengasse 3                     Fax:          +43-1-532-06-52
A-1010 Vienna, AUSTRIA

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