Internal-Error in nested-template-struct
Tobias Polzin
polzin00@marvin.informatik.uni-dortmund.de
Mon Dec 15 12:47:00 GMT 1997
I found this internal-error while compiling a C++-Package (SoPlex) on
an RedHat5.0 Alpha. I isolated the problematic code, but I don't know what
it's for. :-)
template< class T >
void sort( T* t, int n )
{
struct
/*line5*/ {
int operator()(T i, T j)
{
return (i < j) ? -1 : ((j < i) ? 1 : 0) ;
}
} c ;
sort(t, n, c, 0) ;
}
g++ ie.C -c
ie.C: In function `void sort(T *, int)':
ie.C:5: Internal compiler error.
ie.C:5: Please submit a full bug report to `egcs-bugs@cygnus.com'.
Tobias Polzin
More information about the Gcc-bugs
mailing list