Re: Idea for improvement to g++ - warning

2014-12-12 Thread Jonathan Wakely
On 12 December 2014 at 23:38, Kendrick Hamilton wrote: > Hello, > > I had an idea of a warning g++ might be able to add. The purpose of the > warning is to help prevent bugs. The warning is to occur when you might > destroy an inherited class using the base classes pointer. To illustrate > conside

Idea for improvement to g++ - warning

2014-12-12 Thread Kendrick Hamilton
Hello, I had an idea of a warning g++ might be able to add. The purpose of the warning is to help prevent bugs. The warning is to occur when you might destroy an inherited class using the base classes pointer. To illustrate consider class base { public: base(); ~base(); }