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