http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46188
Jason Merrill <jason at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2010.11.10 19:11:20 CC| |jason at gcc dot gnu.org Known to work| |4.4.5, 4.6.0 Summary|-fipa-cp removes destructor |[4.5 regression] -fipa-cp |call |removes destructor call Ever Confirmed|0 |1 Known to fail| |4.5.1 --- Comment #8 from Jason Merrill <jason at gcc dot gnu.org> 2010-11-10 19:11:20 UTC --- Confirmed. Even though size is 1 in ~Array, the inlined form of destruct assumes that end is 0. This is first visible in the IPA inline pass.