Deriving into different namespaces
Martin v. Loewis
martin@loewis.home.cs.tu-berlin.de
Mon Dec 20 10:31:00 GMT 1999
> So it seems that the compiler believes that mynamespace::Base is not
> the base of mynamespace::A::derived1 - but it should be.
Thanks for your bug report. Unfortunately, I cannot reproduce the
problem; please read
http://egcs.cygnus.com/faq.html#bugreport
and provide more details. I've been trying the code
class Base{};
namespace A {
class derived1: public Base {
};
}
int main()
{
A::derived1 *x;
static_cast<Base*>(x);
}
and it compiles fine for me.
Regards,
Martin
More information about the Gcc
mailing list