[Bug other/42540] c++ error message [vtable undefined] is unhelpful
- To: debian-gcc@lists.debian.org
- Subject: [Bug other/42540] c++ error message [vtable undefined] is unhelpful
- From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
- Date: Mon, 14 Mar 2022 17:15:18 +0000
- Message-id: <bug-42540-5724-hv38HBNT53@http.gcc.gnu.org/bugzilla/>
- In-reply-to: <bug-42540-5724@http.gcc.gnu.org/bugzilla/>
- References: <bug-42540-5724@http.gcc.gnu.org/bugzilla/>
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: