This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: an interesting g++ new/delete bug -- only defining half the set


> 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
the like.

With proper instrumentation, you can detect it at run time. I doubt
you can detect it at compile time reliably.

Martin


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]