This is the mail archive of the gcc@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]

A new alpha failure.


On linux/alpha, there is a new failure in egcs-971105:

# gcc x.cc -S
x.cc: In function `struct Extended_Int pow(const struct Extended_Int &, int)':
x.cc:31: Internal compiler error.
x.cc:31: Please submit a full bug report to `egcs-bugs@cygnus.com'.

egcs-971031 is fine with the first alias.c patch.


-- 
H.J. Lu (hjl@gnu.ai.mit.edu)
--x.cc--
struct IntRep                     
{
  unsigned short  len;           
  unsigned short  sz;            
  short           sgn;           
  unsigned short  s[1];          
};
class Integer
{
protected:
  IntRep*         rep;
public:
                  Integer(const Integer&);
                  ~Integer();
};
struct Extended_Int
{
  Integer rad_5;
  int     pow_2;
  Extended_Int (const Extended_Int& param);
  friend Extended_Int operator* (const Extended_Int &param1,
				 const Extended_Int &param2);
  friend inline Extended_Int sqrt (const Extended_Int &param1);
  friend Extended_Int pow  (const Extended_Int &param1, int num);
};
Extended_Int 
pow (const Extended_Int &param1, int num) 
{
    return (num & 1)
      ? param1 * sqrt (pow (param1, num >> 1)) : sqrt (pow (param1, num >> 1));
}


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