[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Bug other/42540] c++ error message [vtable undefined] is unhelpful



https://gcc.gnu.org/bugzilla/show_bug.cgi?id=42540

--- Comment #17 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Eyal Rozenberg from comment #16)
> I'm not quite sure what a key function is,

Then read the link I gave you in PR 104918 comment 1.


> Not just learners. If you have a large class with many methods, whose
> implementation is spread across many files, it can take quite a bit of time
> to figure out which method implementation is missing.

The first one. They key function is the first non-inline, non-pure virtual
function. Read the wiki page. I didn't write that page and suggest you read it
just for fun.

The linker could easily say that, with no changes from GCC. That belongs in the
binutils bugzilla though.

-- 
You are receiving this mail because:
You reported the bug.

Reply to: