This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
A new alpha failure.
- To: egcs at cygnus dot com
- Subject: A new alpha failure.
- From: hjl at lucon dot org (H.J. Lu)
- Date: Thu, 6 Nov 1997 20:27:07 -0800 (PST)
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 ¶m1,
const Extended_Int ¶m2);
friend inline Extended_Int sqrt (const Extended_Int ¶m1);
friend Extended_Int pow (const Extended_Int ¶m1, int num);
};
Extended_Int
pow (const Extended_Int ¶m1, int num)
{
return (num & 1)
? param1 * sqrt (pow (param1, num >> 1)) : sqrt (pow (param1, num >> 1));
}