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]

Internal Compiler Error with egcs-19980525


I got an internal compiler with the following program and egcs-19980525:
template<long n, long d>
struct Rat {
  enum { num = n, den = d };
};

template<long n, long d>
struct RatNeg {
  typedef Rat<n,d> r1;
  typedef Rat< -r1::num, r1::den > r;
};

(Note that the problem seems to be with the - sign in the second to
last line.)

Here's the output of egcs:

Reading specs from /ufs/murphy/derrick/gnu/egcs-19980525/lib/gcc-lib/i686-pc-linux-gnulibc1/egcs-2.91.33/specs
gcc version egcs-2.91.33 19980525 (gcc2 ss-980502 experimental)
 /ufs/murphy/derrick/gnu/egcs-19980525/lib/gcc-lib/i686-pc-linux-gnulibc1/egcs-2.91.33/cpp -lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -D__GNUC_MINOR__=91 -D__ELF__ -Dunix -Dlinux -D__ELF__ -D__unix__ -D__linux__ -D__unix -D__linux -Asystem(posix) -D__EXCEPTIONS -Di386 -Asystem(unix) -Acpu(i386) -Amachine(i386) -D__pentiumpro__ -D__i686__ -D__i386__ -Asystem(unix) -Acpu(i386) -Amachine(i386) -D__pentiumpro__ -D__i686__ ice.cc /tmp/cca11071.ii
GNU CPP version egcs-2.91.33 19980525 (gcc2 ss-980502 experimental) (i386 Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
 /ufs/murphy/derrick/gnu/egcs-19980525/include/g++
 /usr/local/include
 /ufs/murphy/derrick/gnu/egcs-19980525/i686-pc-linux-gnulibc1/include
 /ufs/murphy/derrick/gnu/egcs-19980525/lib/gcc-lib/i686-pc-linux-gnulibc1/egcs-2.91.33/include
 /usr/include
End of search list.
 /ufs/murphy/derrick/gnu/egcs-19980525/lib/gcc-lib/i686-pc-linux-gnulibc1/egcs-2.91.33/cc1plus /tmp/cca11071.ii -quiet -dumpbase ice.cc -version -o /tmp/cca11071.s
GNU C++ version egcs-2.91.33 19980525 (gcc2 ss-980502 experimental) (i686-pc-linux-gnulibc1) compiled by GNU C version egcs-2.91.33 19980525 (gcc2 ss-980502 experimental).
ice.cc:9: Internal compiler error.
ice.cc:9: Please submit a full bug report to `egcs-bugs@cygnus.com'.
Fatal error in process.



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