http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52337
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-02-22 09:38:15 UTC --- (In reply to comment #2) > m[3]=(pgabstract*)&ai; > m[3]->get(); This is undefined behaviour, ai is not of type pgabstract