This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
defining a pure virtual
- To: gcc-bugs at gcc dot gnu dot org
- Subject: defining a pure virtual
- From: Benoit Hudson <bh at techhouse dot brown dot edu>
- Date: Thu, 31 Aug 2000 16:25:10 -0400
I've just noticed that defining a pure virtual function works. For
instance,
struct A {
virtual void f() = 0;
};
void A::f() { }
Gives neither warning nor error, even with -Wall;
nm shows A::f() as being defined.
> gcc -v
Reading specs from /home/bhudson/lib/gcc-lib/i586-pc-linux-gnu/2.95.2/specs
gcc version 2.95.2 19991024 (release)
(and also same compiler on sparc-sun-solaris2.6)