[Bug ada/41100] [4.4/4.5 regression] Unchecked_Deallocation causes wrong free errors

ebotcazou at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Fri Sep 25 17:20:00 GMT 2009



------- 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



More information about the Gcc-bugs mailing list