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]

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 )
        {
            struct
            {
                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
/usr/local/lib/gcc-lib/sparc-sun-sunos4.1.3_U1/egcs-2.90.23/specs
gcc version egcs-2.90.23 980102 (egcs-1.0.1 release)
 /usr/local/lib/gcc-lib/sparc-sun-sunos4.1.3_U1/egcs-2.90.23/cpp
-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:
 /usr/local/include/g++
 /usr/local/include
 /usr/local/sparc-sun-sunos4.1.3_U1/include
 /usr/local/lib/gcc-lib/sparc-sun-sunos4.1.3_U1/egcs-2.90.23/include
 /usr/include
End of search list.
 /usr/local/lib/gcc-lib/sparc-sun-sunos4.1.3_U1/egcs-2.90.23/cc1plus
/usr/tmp/cca05562.ii -quiet -dumpbase t2.cc -version -o
/usr/tmp/cca05562.s
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 `egcs-bugs@cygnus.com'.
Exit 1

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

Johann

---
Johann Petrak                       Email: johann@ai.univie.ac.at
Austrian Research Institute for AI  Phone:     +43-1-533-61-12/13
Schottengasse 3                     Fax:          +43-1-532-06-52
A-1010 Vienna, AUSTRIA         http://www.ai.univie.ac.at/~johann


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