[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Internal compiler error (with wrong code, though)



>Submitter-Id:	net
>Originator:	Michael Piefel <piefel@informatik.hu-berlin.de>
>Organization:	The Debian project
>Confidential:	no
>Synopsis:	Internal compiler error (with wrong code, though)
>Severity:       non-critical
>Priority:       low
>Category:	c++
>Class:		ice-on-illegal-code
>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
>Description:
[ 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.
>How-To-Repeat:
	
>Fix:
	



Reply to: