internal compiler error

nbecker@fred.net nbecker@fred.net
Tue Aug 4 08:50:00 GMT 1998


The offending code looks like:
I'll have to admit, it looks pretty wierd to me.

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) ;
	}



More information about the Gcc-bugs mailing list