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 failure on linux/alpha


While doing "make check" on linux/alpha in egcs with the libg++ addon,

ftp://ftp.yggdrasil.com/privaye/hjl/libg++-2.8.1-980119.tar.gz

I got

/home/work/alpha/bin/egcs/gcc/xgcc -B/home/work/alpha/bin/egcs/gcc/ -c
-O2 -g -fvtable-thunks -nostdinc++ -I. -I../../libio -I/home/work/gnu/src/egcs/libg++/tests -I/home/work/gnu/src/egcs/libg++/tests/../../libio -I/home/work/gnu/src/egcs/libg++/tests/../../libstdc++ -I/home/work/gnu/src/egcs/libg++/tests/../src /home/work/gnu/src/egcs/libg++/tests/tRational.cc
/home/work/gnu/src/egcs/libg++/tests/tRational.cc: In function `void identtest(class Rational &, class Rational &, class Rational &)':
/home/work/gnu/src/egcs/libg++/tests/tRational.cc:45: virtual memory exhausted

while egcs 1.0.1 compiles this file fine. I narrowed it down to
the enclosed file here:

/home/work/gnu/src/egcs/libg++/tests/foo.cc: In function `void identtest(class Rational &, class Rational &, class Rational &)':
/home/work/gnu/src/egcs/libg++/tests/foo.cc:17: virtual memory exhausted

If anyone wants a preprocessed file, please let me know.

Thanks.


-- 
H.J. Lu (hjl@gnu.org)
---foo.cc--
#include <Rational.h>

void identtest(Rational& a, Rational& b, Rational& c)
{
  Rational one(1, 1);
  bool x;

  x = ((a / b) == (one / (b / a)));
  x = ((a - b) ==  -(b - a));
  x = ((a + (b + c)) == ((a + b) + c));
  x = ((a * (b * c)) == ((a * b) * c));
  x = ((a * (b + c)) == ((a * b) + (a * c)));
  x = (((a - b) + b) == a);
  x = (((a + b) - b) == a);
  x = (((a * b) / b) == a);
  x = (((a / b) * b) == a);
}


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