[Bug c++/22446] Invocation of destructor of element of array changes vtable

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Jul 12 20:59:00 GMT 2005


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-07-12 20:45 -------
This is not a bug. Inside ~B() we change to the A vtable and then call ~A().  
        test[9-i] = b;
That just calls "operator=" which does not copy the vtable which is correct.

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


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



More information about the Gcc-bugs mailing list