This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Run time type information bug.
- To: gady at math dot tau dot ac dot il
- Subject: Re: Run time type information bug.
- From: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Date: Wed, 19 Jan 2000 08:52:34 +0100
- CC: gcc-bugs at gcc dot gnu dot org
- References: <200001182243.AAA06123@gemini.math.tau.ac.il>
> 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