[PATCH,C++] Fix PR 33324: ICE on new array of objects with virtual destructors.

David Daney ddaney@avtrex.com
Sat Sep 8 19:52:00 GMT 2007


This bug was caused by an oversight in the conversion to PTR_PLUS that 
appears to not effect most of the primary platforms.  arm-eabi however 
is effected.

Andrew Pinski, thinks it is obviously correct, but not being a c++ 
front-end guy I will wait for a maintainer to render an opinion.

Bootstrapped and regression tested with c,c++ on x86_64-pc-linux-gnu 
with no regressions, and with arm-none-eabi cross compiler on arm-sim 
where it gives 41 new g++ PASSes and 59 new libstdc++ PASSes.  
27_io/objects/char/12048-5.cc however went from XPASS to XFAIL.  I am 
assuming that this does not matter as it is an XFAIL.

:ADDPATCH C++:

OK to commit?

2007-09-08  David Daney  <ddaney@avtrex.com>

    PR c++/33324
    * init.c (build_new_1):  Use POINTER_PLUS_EXPR instead of MINUS_EXPR
    to calculate cookie_ptr.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PR33324.patch
Type: text/x-patch
Size: 701 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20070908/aef6b423/attachment.bin>


More information about the Gcc-patches mailing list