This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/81973] Aliased virtual methods are treated as undefined, so the vtable is not generated
- From: "blaffablaffa at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 24 Aug 2017 20:14:43 +0000
- Subject: [Bug c++/81973] Aliased virtual methods are treated as undefined, so the vtable is not generated
- Auto-submitted: auto-generated
- References: <bug-81973-4@http.gcc.gnu.org/bugzilla/>
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.