[Bug c++/26838] Legal program rejection - protected base method addressing fails from grandchild class

Simon80 at gmail dot com gcc-bugzilla@gcc.gnu.org
Thu Mar 23 23:44:00 GMT 2006



------- 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



More information about the Gcc-bugs mailing list