This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Resubmission of ICE 109 bug
- To: egcs-bugs at cygnus dot com
- Subject: Resubmission of ICE 109 bug
- From: Derrick Bass <derrick at tapir dot Caltech dot EDU>
- Date: Tue, 9 Jun 1998 22:46:38 -0700
Here is a (hopefully corrected) resubmission of my test program that
generates internal compiler error #109 on egcs-19980525.
Alexandre Oliva has verified that the problem persists in the latest
snapshot.
class InterpolatedList {
public:
double y(double x);
// exception classes
class range;
};
class LLInterpolatedList : public InterpolatedList {
public:
LLInterpolatedList() :
InterpolatedList() { }
inline double y(double x);
};
inline double LLInterpolatedList::y(double x) {
try {
return InterpolatedList::y(x);
} catch (range r) {
throw range(xname, x, r.lim()); // Oops! forgot to define range()!
// Compiler error 109!
}
}
--------------------------
Compiler output:
lenny[230]~/gnu/egcs-19980525/bin/g++ -v -c throwbug.cc
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__ throwbug.cc /tmp/cca14331.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/cca14331.ii -quiet -dumpbase throwbug.cc -version -o /tmp/cca14331.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).
throwbug.cc: In method `double LLInterpolatedList::y(double)':
throwbug.cc:21: Internal compiler error 109.
throwbug.cc:21: Please submit a full bug report to `egcs-bugs@cygnus.com'.
----------------
Thanks!
Derrick Bass