[Bug target/33324] New: ICE on new array of objects with virtual destructors.
daney at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu Sep 6 18:48:00 GMT 2007
On the trunk r128169, configured thusly:
$ ../clean/configure --target=armv5tl-montavista-linuxeabi
--prefix=/home/daney/mvl_ti/gcj
--with-sysroot=/home/daney/mvl_ti/mv_pro_4.0/montavista/pro/devkit/arm/v5t_le/target
--enable-languages=c,c++ --with-float=soft --disable-java-awt --without-x
--disable-jvmpi --enable-__cxa_atexit --disable-sjlj-exceptions
I get the following ICE:
$ /home/daney/gccsvn/arm-clean/gcc/g++ -B/home/daney/gccsvn/arm-clean/gcc/ -S
foo.cc
foo.cc: In constructor ÂC::C(int)Â:
foo.cc:15: internal compiler error: in build2_stat, at tree.c:3110
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
There is no ICE on i686-pc-linux-gnu native build.
Test case:
----foo.cc-----------
class A
{
public:
virtual ~A(){};
};
class C
{
public:
A *q;
public:
C(int x)
{
q = new A[x];
}
};
--------------------
--
Summary: ICE on new array of objects with virtual destructors.
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: target
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: daney at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: armv5tl-none-linuxeabi
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33324
More information about the Gcc-bugs
mailing list