This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Run time type information bug.


> 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]