This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Trying to compile Doc++
- To: egcs-bugs at cygnus dot com
- Subject: Trying to compile Doc++
- From: Preben Randhol <randhol at dusken4 dot samfundet dot ntnu dot no>
- Date: 16 Jul 1998 15:19:56 +0200
Im trying to compile Doc++ on a Linux 2.0.33 (RedHat 5.0) system with
egsc-1.0.3a
[c++ -v
Reading specs from /usr/lib/gcc-lib/i586-linux/egcs-2.90.29/specs
gcc version egcs-2.90.29 980515 (egcs-1.0.3 release)]
I get this:
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
>From the McSorter.h file.
/*@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
{
int operator()(T i, T j)
{
return (i < j) ? -1 : ((j < i) ? 1 : 0) ;
}
} c ;
sort(t, n, c, 0) ;
}
#endif
--
Preben Randhol | Azh nazg durbataluk, azh nazg
Tlf 73940929/(735)94076 [arb] | gimbatul. Azh nazg thrakataluk agh
Email randhol@pvv.org | burzum ishi krimpatul!
http://www.pvv.org/~randhol/ | -- J. R. R. Tolkien