From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 52CC1385F02A; Thu, 25 Aug 2022 09:17:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 52CC1385F02A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1661419067; bh=kNkotDFLGtyZuuk3w3lFS/kVDYAhs9WyQpscwTdJipU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=TcEZ6KElZ6BL42QEOAYvx8uyfPJYTg+m22j9a1WwDrEK5Cx58CI370UyMAMyOSdw3 /+g+mbnh2B0sXczkrsx6kmNP7hWzZoJiJddzxvlveVERUVTqnEZQXL7m53FPcMrG9f fcI5w3c9P6DH2HxSuMkQoRDK67NQWTqubFu+gjmw= From: "manu at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug other/42540] c++ error message [vtable undefined] is unhelpful Date: Thu, 25 Aug 2022 09:17:46 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: other X-Bugzilla-Version: 4.5.0 X-Bugzilla-Keywords: diagnostic, patch X-Bugzilla-Severity: enhancement X-Bugzilla-Who: manu at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D42540 --- Comment #24 from Manuel L=C3=B3pez-Ib=C3=A1=C3=B1ez --- For completeness, this is what LLD says: ld.lld: error: undefined symbol: vtable for A >>> referenced by example.cpp:7 >>> /tmp/example-5d8b98.o:(A::A()) >>> the vtable symbol may be undefined because the class is missing its key= function (see https://lld.llvm.org/missingkeyfunction) which seems better.=