------- Comment #1 from redi at gcc dot gnu dot org 2010-07-06 15:26 ------- (In reply to comment #0) > > undefined reference to `vtable for IFoo' > Suggestions: > * Ensure that no (pure) member function of `IFoo' became unintentionally > non-pure because of a missing or deleted `= 0'
While I think adding a note would be helpful, the suggestion above is ridiculous. It certainly shouldn't be the first suggestion. The answer is to ensure the first, non-inline virtual function is defined. That's it. Suggestions about "unintentionally becoming non-pure" would cause more confusion than they would help. However, the error comes from the linker, so there's nothing gcc can do about it when compiling. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44841