This is the mail archive of the gcc@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]

Re: Deriving into different namespaces


 || On Mon, 20 Dec 1999 19:21:18 +0100
 || "Martin v. Loewis" <martin@loewis.home.cs.tu-berlin.de> wrote: 

 >> So it seems that the compiler believes that mynamespace::Base is not
 >> the base of mynamespace::A::derived1 - but it should be.

 mvl> Thanks for your bug report. Unfortunately, I cannot reproduce the
 mvl> problem; please read

The problem was caused by a nasty typo/brain bug... at the point where
the derived classes have been declared first (so they could be made
friend) I wrote "class" instead of "namespace" - which made it link
and compile *until* one tries to cast from one type to another. Sorry
for the inconvenience - I have no idea what made me write "class"
although I wanted to write "namespace." Sheesh.

Regards,
		Georg

-- 
Georg C. F. Greve <greve@gnu.org>
"Brave GNU World", the monthly GNU forum
in English, German, French, Spanish and Japanese. 
Check it out at http://www.gnu.org/brave-gnu-world/

PGP signature


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