Code generation bug for operator new[] when -fcheck-new in GCC 3.3.1

2003-11-26 Thread Tom Scott
I've found that the following sample, which uses nothrow memory allocation semantics, generates a segmentation violation: // g++ -g -fcheck-new -fno-exceptions -fno-rtti sample.cpp #include class foo { public: int v; foo(){ v = 0; } ~foo() {} void* operator new[](size_t size) {

RE: Code generation bug for operator new[] when -fcheck-new in GCC 3.3.1

2003-11-28 Thread Tom Scott
This bug is more properly a bug with GCC and not with cygwin - it shows up in GCC 3.2.2 (i386-redhat-linux) as well. So I've submitted the problem to GCC Bugzilla. It's Bug 13215. - Tom -Original Message----- From: Tom Scott [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 26,