bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/28973] Improve error message for missing vtable


From: amodra at gmail dot com
Subject: [Bug ld/28973] Improve error message for missing vtable
Date: Sat, 13 May 2023 08:25:36 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=28973

Alan Modra <amodra at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |NOTABUG

--- Comment #1 from Alan Modra <amodra at gmail dot com> ---
The related gcc "bug" has been around since 2009, and no one wanting an
improvement in the error message has been bothered enough to write a patch. 
Anyone hitting the error does a web search and quickly finds what "vtable for"
means.  That indicates to me that this linker bug will sit here forever too.

I am not going to write a patch, but if someone did want to emit a slightly
better message, you'd need to look at ldmain.c:undefined_symbol and match
symbols starting with "_ZTV" to emit a slightly better message mentioning "the
first non-pure non-inline virtual member function" of the type.  I don't know
how the linker can know the key function B::foo in the example.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]