public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: grigory@stl.sarov.ru To: gcc-gnats@gcc.gnu.org Subject: c++/8021: undefined reference to virtual thunk Date: Tue, 24 Sep 2002 07:56:00 -0000 [thread overview] Message-ID: <20020924145409.17258.qmail@sources.redhat.com> (raw) >Number: 8021 >Category: c++ >Synopsis: undefined reference to virtual thunk >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Tue Sep 24 07:56:04 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Grigory Zagorodnev >Release: 3.2 >Organization: >Environment: Red Hat Linux release 7.3.94 ((null)) Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --host=i386-redhat-linux --with-system-zlib --enable-__cxa_atexit Thread model: posix gcc version 3.2 (Red Hat Linux Rawhide 3.2-1) >Description: The Issue --------- G++ compiler gives "undefined reference to `virtual thunk..." error message while building the following test-case. Testcase -------- struct C3 { virtual int f8() { } }; struct C4: virtual C3 { }; struct C2: virtual C3, C4 { int i; virtual int f8() {} }; struct C1: virtual C2 { }; C1 o1; int main() { return 0; } Command line is: $ g++ -c fail.cpp $ g++ fail.o Error Message ------------- fail.o(.gnu.linkonce.r._ZTC2C14_2C2+0x20): undefined reference to `virtual thunk [v:0,-12] to C2::f8()' fail.o(.gnu.linkonce.r._ZTV2C1+0x14): undefined reference to `virtual thunk [v:0,-12] to C2::f8()' collect2: ld returned 1 exit status >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted:
next reply other threads:[~2002-09-24 14:56 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2002-09-24 7:56 grigory [this message] 2002-11-04 15:12 bangerth 2002-11-06 18:07 mmitchel
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20020924145409.17258.qmail@sources.redhat.com \ --to=grigory@stl.sarov.ru \ --cc=gcc-gnats@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).