Is gcc allowed to eliminate writes in a destructor?

Norbert Lange lange@chello.at
Wed Jun 10 11:47:00 GMT 2015


Thanks,

if you mean vtable gets altered you mean the pointer is directed to
another vtable?
I assume you are right on this simple example (the members of Derived
are placed after Base, allowing a single vtable pointer ),
but with multiple inheritance you will invariable need multiple vtables.



More information about the Gcc-help mailing list