http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57305
--- Comment #7 from janus at gcc dot gnu.org --- Created attachment 30682 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30682&action=edit patch Here is a preliminary patch to make SIZEOF return the size of the dynamic type for polymorphic variables, which at the same time fixes the ICE on CLASS(*) variables.