Message-ID: <350ECEB1.BFDE2CD0@johnbryce.co.il> Date: Tue, 17 Mar 1998 21:27:46 +0200 From: Noam Rotem Organization: John Bryce Training Centre L.T.D MIME-Version: 1.0 To: Andris Pavenis CC: djgpp AT delorie DOT com Subject: Re: Run-time error: pure virtual function called References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Precedence: bulk Andris Pavenis wrote: > On Mon, 16 Mar 1998, Gavin Sinclair wrote: > > > the message "Pure virtual function called" (using DJGPP of course, gcc > > 2.7.2.1). > > The most obvious way how to get this message is to call virtual function > from constructor or destructor of base class when this virtual function is > redefined in inheritted class Why is this a runtime error? Can't the compiler locate this bug? Noam Rotem