This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Bug report:
- To: egcs-bugs at cygnus dot com
- Subject: Bug report:
- From: nj dot lee at kiwa dot co dot nz (Nicholas Lee)
- Date: Sat, 06 Jun 1998 00:59:24 GMT
- Organization: Kiwa Enterprises Ltd
12:34pm stat1 /users/grad/nlee011/src/doc++-3.0>g++ -v
Reading specs from
/usr/local/lib/gcc-lib/sparc-solaris2/egcs-2.90.29/specs
gcc version egcs-2.90.29 980515 (egcs-1.0.3 release)
12:34pm stat1 /users/grad/nlee011/src/doc++-3.0>uname -a
SunOS stat1 5.5.1 Generic_103640-12 sun4u sparc SUNW,Ultra-2
Error Log:
McSorter.h: In function `void sort(T *, int)':
In file included from html.cpp:39:
McSorter.h:78: Internal compiler error.
McSorter.h:78: Please submit a full bug report to `egcs-bugs@cygnus.com'.
make: *** [html.o] Error 1
Compiling doc++3.0 with $make all
Code fragment that caused error:
#ifndef _CRAYMPP
/*@ManDoc:
The template function #sort# sorts an array #t# holding #n# elements
of type
#T#, which must provide an #operator>#.
*/
template< class T >
void sort( T* t, int n )
{
struct
78>>> {
int operator()(T i, T j)
{
return (i < j) ? -1 : ((j < i) ? 1 : 0) ;
}
} c ;
sort(t, n, c, 0) ;
}
#endif //@ _CRAYMPP
//@}
Hope this helps,
Nicholas
--
Nicholas Lee, Kiwa Enterprises Ltd
postmaster for kiwa.co in nz
NO SPAM for me!