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++/11157] Annoying warning message


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11157


giovannibajo@libero.it changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


------- Additional Comments From giovannibajo@libero.it  2003-06-11 21:12 -------
Instead, the warning looks very appropriate to me. If you use it as a base 
class, you can get weird behaviours because the destructor is not virtual. In 
other words, if you deleted your derived object through a Base*, only the 
destructor in Base would be called and not the destructors in derived object. 

In other words, GCC is telling you that this way you are making way to not 
wanted object slicing and incomplete destructions. I rate this warning as very 
useful.


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