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 wrong code, though)


[submitted to the Debian BTS, reproduceable with CVS 20010121 on i386-linux]

From: Michael Piefel <piefel@informatik.hu-berlin.de>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: Internal compiler error (with wrong code, though)

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.

Bye,
    Mike


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