[Bug c++/37112] nested inherited class can't access protected members of base class

2008-08-13 Thread darkwingz at yahoo dot com
--- Comment #2 from darkwingz at yahoo dot com 2008-08-13 15:57 --- Thanks for your reply. I think I would have seen this had I tried testing it without the nesting. I tried to compile the following code: class A { protected: int i; }; class B : public A { public: void foo(A *a

[Bug c++/37112] nested inherited class can't access protected members of base class

2008-08-13 Thread chris dot fairles at gmail dot com
--- Comment #1 from chris dot fairles at gmail dot com 2008-08-13 15:32 --- You're simply trying to access a protected member variable which is not allowed. It doesn't matter if you try to access it from a member function of a sub-object of A; if you have an object of type A, and it has