public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/81973] alias virtual function does not cause the vtable to be emitted even if the aliased function is defined in the TU
[not found] <bug-81973-4@http.gcc.gnu.org/bugzilla/>
@ 2021-12-22 3:31 ` pinskia at gcc dot gnu.org
0 siblings, 0 replies; only message in thread
From: pinskia at gcc dot gnu.org @ 2021-12-22 3:31 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81973
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |link-failure
Ever confirmed|0 |1
Last reconfirmed| |2021-12-22
Status|UNCONFIRMED |NEW
Summary|Aliased virtual methods are |alias virtual function does
|treated as undefined, so |not cause the vtable to be
|the vtable is not generated |emitted even if the aliased
| |function is defined in the
| |TU
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed.
Note GCC (since 8) does warn about the types being different now:
<source>:14:22: warning: 'void s::g()' alias between functions of incompatible
types 'void (s::)()' and 'void(s*)' [-Wattribute-alias=]
14 | void g() __attribute__ ((alias ("s_g_alias")));
| ^
<source>:25:14: note: aliased declaration here
25 | void s_g_alias(s* this_){
| ^~~~~~~~~
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-12-22 3:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-81973-4@http.gcc.gnu.org/bugzilla/>
2021-12-22 3:31 ` [Bug c++/81973] alias virtual function does not cause the vtable to be emitted even if the aliased function is defined in the TU pinskia at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).