This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Namespace bug in EGCS 1.1.2
- To: egcs-bugs at egcs dot cygnus dot com
- Subject: Namespace bug in EGCS 1.1.2
- From: Mark Spruiell <mes at ooc dot com>
- Date: Thu, 01 Apr 1999 08:14:20 -0800
When I compile this code:
namespace A {
class X {};
}
namespace B {
class X {};
}
class X_impl : virtual public A::X, virtual public B::X
{
public:
X_impl();
};
X_impl::X_impl()
{
}
I get the following error:
Test.cpp:19: duplicate member `X_impl::_vb.X'
Test.cpp: In method `X_impl::X_impl()':
Test.cpp:22: confused by earlier errors, bailing out
Compiler specs:
Reading specs from
/opt/egcs-1.1.2/lib/gcc-lib/i686-pc-linux-gnu/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release)
Martin v. Loewis mentioned that a fix for this problem had been
made in a development snapshot, but didn't make it into 1.1.2.
Take care,
Mark
--
Mark E. Spruiell
Object-Oriented Concepts, Inc.
mes@ooc.com * http://www.ooc.com * 1-978-439-9285 x 247