This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/34675] New: ICE: Segmentation fault
- From: "fafa at freesurf dot ch" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Jan 2008 14:40:26 -0000
- Subject: [Bug c++/34675] New: ICE: Segmentation fault
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
G++ version:
GNU C++ (GCC) version 4.3.0 20071228 (experimental) (i686-elf)
compiled by GNU C version 3.3.3 (cygwin special), GMP version 4.2.2,
MPFR version 2.3.0.
Code compiled:
///////////////////////
extern "C" void my_delete ( void * addr , const void* pCaller );
void operator delete[] (void* x) throw()
{
my_delete( x, reinterpret_cast<void*>(
reinterpret_cast<unsigned int*>(&x)[-1]) );
}
///////////////////////
If compiled with -O1 (or 2 or 3) I get
new.cpp: In function 'void operator delete [](void*)':
new.cpp:7: internal compiler error: Segmentation fault
(compiled ok with version 4.3.0 20071005)
--
Summary: ICE: Segmentation fault
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: fafa at freesurf dot ch
GCC target triplet: i686-elf
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34675