This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Bug
- To: egcs-bugs at cygnus dot com
- Subject: Bug
- From: "J. de Antonio" <j_antonio at mtsa dot com>
- Date: Fri, 17 Jul 1998 18:29:58 +0100
- Organization: Marketing Technology S.A.
Hi,
The following piece of code make egcs to issue a 'compiler internal
error' message.
-- begin
#include <vector.h>
#include <algo.h>
template< class contenido >
void sort_desc(vector<pair<contenido*,double> > &p)
{
struct <- Error is issued at this point.
{
bool operator()(const pair<clase_contenida*,double> &p1,const
pair<clase_contenida*,double> &p2)
{
return(p1.second>p2.second);
} pair_comp_desc
};
sort ( p.begin(), p.end(), pair_comp_desc);
}
-- end
I'm working on a Solaris X86 v.2.5.1 and the version of gcs is:
'gcc version egcs-2.90.27 980315 (egcs-1.0.2 release)'
Thanks in advance for any help.
--
Jordi de Antonio mailto:j_antonio@mtsa.com