This is the mail archive of the gcc-bugs@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]
Other format: [Raw text]

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



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


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