Re: Run-time error with virtual function w/o invocation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux