https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93208
Bug ID: 93208
Summary: duplicated memory_resource, monotomic_buffer_resource
vtable, type_info d/t all-inline virtual functions
Product: gcc
Version: 10.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: marc at kdab dot com
Target Milestone: ---
Both `memory_resource` and `monotonic_buffer_resource` have all virtual methods
inline, so their vtables (and rtti) are not pinned to libstdc++.so, but are
duplicated in each executable (.so or application), causing minor executable
code bloat and false negative dynamic_casts.
Expected: At least their dtor should be out-of-line, so the vtable and the
type_info object are emitted in libstdc++.so, and only there.