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

2006-04-18 Thread Simon80 at gmail dot com
--- Comment #5 from Simon80 at gmail dot com 2006-04-19 04:54 --- (In reply to comment #4) > This is not a bug. While the name in a function call is looked up from > inside the class, the name of a member function is looked up in the > global scope. There, the member in questio

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

2006-03-23 Thread Simon80 at gmail dot com
on: 4.0.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: Simon80 at gmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26838

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

2006-03-23 Thread Simon80 at gmail dot com
--- 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:

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

2006-03-23 Thread Simon80 at gmail dot com
--- Comment #3 from Simon80 at gmail dot com 2006-03-24 07:01 --- (In reply to comment #2) > IIRC (there is a bug about this but I cannot find it) pointer to member > functions are special as you cannot use them to evade accessibility. > I thought of this after I reported the