This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/17457] private type in base class causes conflict when overriding equally named method in derived classes
- From: "bonefish at cs dot tu-berlin dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Sep 2004 12:35:07 -0000
- Subject: [Bug c++/17457] private type in base class causes conflict when overriding equally named method in derived classes
- References: <20040913123212.17457.bonefish@cs.tu-berlin.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From bonefish at cs dot tu-berlin dot de 2004-09-13 12:34 -------
Created an attachment (id=7121)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7121&action=view)
Source file to reproduce the bug
gcc -o test.o test.cpp
produces:
test.cpp:14: error: declaration of `virtual int Directory::Link(int)'
test.cpp:9: error: conflicts with previous declaration `virtual int
Node::Link(int)'
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17457