egcs 1.1.2 allows throwing an ABC

Martin v. Loewis martin@mira.isdn.cs.tu-berlin.de
Sun May 23 12:45:00 GMT 1999


> I believe this is a bug. (However, if it for some strange reason is a
> feature, I'd like to see at least a compiler switch to disallow this thing.)

Thanks for your bug report. gcc-2.95 19990523 says

a.cc: In function `int main()':
a.cc:8: cannot allocate an object of type `A'
a.cc:8:   since the following virtual functions are abstract:
a.cc:3:         int A::f()

so it seems that the bug is fixed.

Regards,
Martin


More information about the Gcc-bugs mailing list