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