This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug ada/41100] [4.4/4.5 regression] Unchecked_Deallocation causes wrong free errors
- From: "ebotcazou at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Sep 2009 17:20:34 -0000
- Subject: [Bug ada/41100] [4.4/4.5 regression] Unchecked_Deallocation causes wrong free errors
- References: <bug-41100-286@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #10 from ebotcazou at gcc dot gnu dot org 2009-09-25 17:20 -------
> Thanks for your analysis! I'm curious at what's going wrong: it looks scary to
> have wrong code in such a simple use case :)
See utils2.c:maybe_wrap_malloc and maybe_wrap_free for the story about the
super-alignment business. This doesn't play nice with polymorphism.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41100