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]

Bug


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


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