This is GCC Bugzilla
This is GCC Bugzilla Version 2.20+
View Bug Activity | Format For Printing | Clone This Bug
[ Reported to the Debian BTS as report #81122. Please CC 81122-quiet@bugs.debian.org on replies. Log of report can be found at http://bugs.debian.org/81122 ] http://gcc.gnu.org/ml/gcc-bugs/2001-01/msg00721.html The following little program (this is the *.ii file) ---snip--- # 1 "k.cc" class _fred { virtual void do_it(int, int) =0; }; typedef _fred * fred; class _barney:public _fred{ using fred::do_it; }; ---snip--- causes an internal compiler error 89 in line 9 when using "g++ -c". Note that of course the code is wrong, as fred is the pointer not the class, but an internal compiler error is a little harsh an error message. This is not the known using-bug found on the web page, AFAICS. Release: 3.0 (Debian GNU/Linux) Environment: System: Debian GNU/Linux (testing/unstable) Architecture: i686 host: i386-linux build: i386-linux target: i386-linux configured with: ../src/configure -v --enable-languages=c,c++,java,f77,proto,objc --prefix=/usr --infodir=/share/info --mandir=/share/man --enable-shared --with-gnu-as --with-gnu-ld --with-system-zlib --enable-long-long --enable-nls --without-included-gettext --disable-checking --enable-threads=posix --enable-java-gc=boehm --with-cpp-install-dir=bin --enable-objc-gc i386-linux
Responsible-Changed-From-To: unassigned->gdr Responsible-Changed-Why: See below.
State-Changed-From-To: open->analyzed State-Changed-Why: Pacth in progress.
State-Changed-From-To: analyzed->closed State-Changed-Why: With gcc 3.0.4, the following compiler ICE occurs: k.cc:1: warning: all member functions in class `_fred' are private k.cc:7: Internal error #89. k.cc:7: Internal compiler error in get_binfo, at cp/search.c:273 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions. With gcc version 3.1 20020217 (experimental), the compiler does not ICE and the following compilation error results: k.cc:1: warning: all member functions in class `_fred' are private k.cc:7: type `_fred*' is not a base type for type `_barney'