[Bug c++/32984] New: add checking for array new delete

2007-08-04 Thread dcb314 at hotmail dot com
Given the following C++ code class K { public: void f(); void g(); private: int * a; double * b; float * c; unsigned int * d; }; void K :: f() { a = new int; b = new double [ 10]; delete c; delete [] d; } void K ::

Re: [Bug c++/32984] New: add checking for array new delete

2007-08-04 Thread Gabriel Dos Reis
dcb314 at hotmail dot com [EMAIL PROTECTED] writes: | Given the following C++ code | | class K | { | public: | void f(); | void g(); | | private: | int * a; | double * b; | float * c; | unsigned int * d; | }; | | void K :: f() | { | a =