This is the mail archive of the
mailing list for the GCC project.
Re: an interesting g++ new/delete bug -- only defining half the set
- To: brendan at cygnus dot com
- Subject: Re: an interesting g++ new/delete bug -- only defining half the set
- From: Martin von Loewis <martin at mira dot isdn dot cs dot tu-berlin dot de>
- Date: Wed, 26 Aug 1998 23:50:26 +0200
- CC: egcs-bugs at cygnus dot com
- References: <firstname.lastname@example.org>
> Any thoughts on a productive way to make the compiler see that this is
> happening, and suitably warn about it?
It seems that this should be a Checker application. Purify detects
this kind of stuff and calls it 'non-matching memory deallocation' or
With proper instrumentation, you can detect it at run time. I doubt
you can detect it at compile time reliably.