|
![]() Click on image to see enlargment |
|
PC-lint/FlexeLint Output | Reference Manual Explanation | Home bug1511.cpp
A new Office Holder OH assumes power hoping to fool all of the people but instead fools no one. What is his mistake? bug1511.cpp lint Output
--- Module: bug1511.cpp (C++)
_
{ cSTR fool() const { return "all"; } };
bug1511.cpp(8) : Warning 1511: Member hides non-virtual member
'president::fool(void) const' (line 6)
_
return 0;
bug1511.cpp(18) : Warning 429: Custodial pointer 'p' (line 15) has not been
freed or returned
Reference Manual Explanation
1511 Member hides non-virtual member 'Symbol' (Location) -- The named
member of a derived class hides a similarly named member of a
base class. Moreover, the base class member is not virtual. Is
this a mistake? Was the base member supposed to have been
declared virtual? By unnecessarily using the same name,
confusion could be created.
If you have comments or questions about this bug, please post them to our Discussion Forum |
Previous Bug - Bug #750 - January 2006