On 31 May 2012 05:39, Arthur Schwarz wrote: > > > I'm using g++ 4.5.3 under cygwin using the Netbeans 7.1.1 IDE. A segment > fault occurs at runtime with the following code. > > ================== code ================== > #include <iostream> > > using namespace std; > > class baseClass { > public: > static void* operator new(size_t size) { cout << "new" << endl << flush;}; Try enabling some warnings. This function is broken.