This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/52337] memory hole


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]