This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/26838] Legal program rejection - protected base method addressing fails from grandchild class
- From: "Simon80 at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Mar 2006 23:44:21 -0000
- Subject: [Bug c++/26838] Legal program rejection - protected base method addressing fails from grandchild class
- References: <bug-26838-12399@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from Simon80 at gmail dot com 2006-03-23 23:44 -------
Sorry for double posting, but here's the g++ output:
# g++ testcase.cpp
testcase.cpp: In member function 'void C::f()':
testcase.cpp:4: error: 'void A::f()' is protected
testcase.cpp:20: error: within this context
Also, this occurs on gcc-3.4.5 as well.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26838