class A { virtual int B() { return 0; } }; class B: A { B() { } };
gives an error, but should compile (as gross as it is). I'm hoping there is a prohibition against it, but didn't find one. -- Summary: ctors never override virtual functions Product: gcc Version: 4.4.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: mrs at apple dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37465