[Bug c++/35772] GCC allows defining pure virtual functions

2008-03-31 Thread yuriry at gmail dot com
--- Comment #2 from yuriry at gmail dot com 2008-03-31 07:10 --- Hi Björn, Thank you for the link and setting me straight. You are correct, implementation of a pure virtual function by the class that declares it makes sense. It is just the class itself remains abstract. Earlier today

[Bug c++/35772] GCC allows defining pure virtual functions

2008-03-30 Thread herwig at gdsys dot de
--- Comment #1 from herwig at gdsys dot de 2008-03-31 06:41 --- Hi yuri, I think, this is perfectly correct code and GCC is right in accepting it. First of all, see "Effective C++" issue 14 about the pure virtual destructor. Then see here: http://en.wikipedia.org/wiki/Virtual_function#