The code, as indicated, should not fail if you have a virtual function in the base class (as indicated in the shortcut).
, "Base class is not polymorphic", , , , .
, , , - - , vtable . ++, , vtable, .
, , - (?)
, . /.
EDIT:
, Derived from Base;) ( , )
, , , gcc () vtable Derived. , gcc 4.0
3.1 7 ... , .