Run time type information bug.

Martin v. Loewis martin@loewis.home.cs.tu-berlin.de
Tue Jan 18 23:57:00 GMT 2000


> Gcc 2.95 and 2.95.2 will not compile the following simple program:
> 
> class A { virtual void f(); };
> class B : A {};
> main() {}

Thanks for your bug report. This is not a bug in g++, but in your
program. You declare a virtual function without defining it; this is
an error.

Regards,
Martin


More information about the Gcc-bugs mailing list