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]

Trying to compile Doc++



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


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