[Bug c++/81973] Aliased virtual methods are treated as undefined, so the vtable is not generated

blaffablaffa at gmail dot com gcc-bugzilla@gcc.gnu.org
Fri Aug 25 00:26:00 GMT 2017


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

--- Comment #1 from Lorenzo Pistone <blaffablaffa at gmail dot com> ---
It is possible to obtain the desired behavior defining in a compilation unit a
dummy s::f with weak attribute (and so generate the vtable), then in a separate
compilation the actual alias of s::f to s_f_alias, but this it is an
impractical workaround.


More information about the Gcc-bugs mailing list