public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: middle-end/9152: Undefined virtual thunks
@ 2003-03-15  3:42 bangerth
  0 siblings, 0 replies; 3+ messages in thread
From: bangerth @ 2003-03-15  3:42 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, john.sturton, nobody

Synopsis: Undefined virtual thunks

State-Changed-From-To: open->feedback
State-Changed-By: bangerth
State-Changed-When: Sat Mar 15 03:42:57 2003
State-Changed-Why:
    Hm, I cannot reproduce this with 3.2, 3.2.2, or any newer
    version of gcc. Can you possibly check and see whether this
    behavior still persists on your system?
    
    Thanks
      Wolfgang

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9152


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: middle-end/9152: Undefined virtual thunks
@ 2003-03-17  9:56 John Sturton
  0 siblings, 0 replies; 3+ messages in thread
From: John Sturton @ 2003-03-17  9:56 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR c++/9152; it has been noted by GNATS.

From: John Sturton <john.sturton@sescoi.fr>
To: bangerth@dealii.org, gcc-bugs@gcc.gnu.org,
 	gcc-prs@gcc.gnu.org, john.sturton@sescoi.fr, nobody@gcc.gnu.org,
 	gcc-gnats@gcc.gnu.org
Cc:  
Subject: Re: middle-end/9152: Undefined virtual thunks
Date: Mon, 17 Mar 2003 10:52:00 +0100

 This is a multi-part message in MIME format.
 --------------0A8AF3632A1EC3EEE823B606
 Content-Transfer-Encoding: 7bit
 Content-Type: text/plain; charset=us-ascii
 
 bangerth@dealii.org wrote:
 > 
 > Synopsis: Undefined virtual thunks
 > 
 > State-Changed-From-To: open->feedback
 > State-Changed-By: bangerth
 > State-Changed-When: Sat Mar 15 03:42:57 2003
 > State-Changed-Why:
 >     Hm, I cannot reproduce this with 3.2, 3.2.2, or any newer
 >     version of gcc. Can you possibly check and see whether this
 >     behavior still persists on your system?
 > 
 >     Thanks
 >       Wolfgang
 > 
 > http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9152
 
 Hi,
 
 Yes, I still have the problem with my 3.2 Mandrake installation. I have
 re-attached the output from the compilation. Is there anything else I
 can provide?
 
 Cheers,
 
 John Sturton
 --------------0A8AF3632A1EC3EEE823B606
 Content-Transfer-Encoding: 7bit
 Content-Type: text/plain; charset=us-ascii;
  name="gbug.log2"
 Content-Disposition: inline;
  filename="gbug.log2"
 
 
 class CPureVirtualBase1 {
 public:
   CPureVirtualBase1(void);
   virtual ~CPureVirtualBase1(void);
   virtual void Import(void)=0;
   virtual void Export(void) const =0;
 }; // CPureVirtualBase1
 
 #define DECLARE_CLASS(_className)\
 {\
 public:\
   _className(void);\
   virtual ~_className(void);\
   virtual void Import(void);\
   virtual void Export(void) const;\
 };
 
 class CBase2 : virtual public CPureVirtualBase1
 DECLARE_CLASS(CBase2)
 
 class CBase3 : virtual public CPureVirtualBase1, public CBase2
 DECLARE_CLASS(CBase3)
 
 class CBase4 : virtual public CPureVirtualBase1
 DECLARE_CLASS(CBase4)
 
 class CBase5 : public CBase4, public CBase3
 DECLARE_CLASS(CBase5)
 
 
 CPureVirtualBase1::CPureVirtualBase1(void)
 {
 } // CPureVirtualBase1::CPureVirtualBase1
 
 CPureVirtualBase1::~CPureVirtualBase1(void)
 {
 } // CPureVirtualBase1::~CPureVirtualBase1
 
 #define DEFINE_CLASS(_className) \
 _className::_className(void) {}\
 _className::~_className(void) {}\
 void _className::Import(void) {}\
 void _className::Export(void) const {}
 
 DEFINE_CLASS(CBase2)
 DEFINE_CLASS(CBase3)
 DEFINE_CLASS(CBase4)
 DEFINE_CLASS(CBase5)
 
 int main(void)
 {
   return 0;
 } // main
 
 
 pc-linux1[john]:/serv1-3/save/john/dev/14/gcc *14*> g++ gbug.cpp -v
 Reading specs from /usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2/specs
 Configured with: ../configure --prefix=/usr --libdir=/usr/lib --with-slibdir=/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --enable-long-long --enable-__cxa_atexit --enable-languages=c,c++,ada,f77,objc,java --host=i586-mandrake-linux-gnu --with-system-zlib
 Thread model: posix
 gcc version 3.2 (Mandrake Linux 9.0 3.2-1mdk)
  /usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2/cc1plus -v -D__GNUC__=3 -D__GNUC_MINOR__=2 -D__GNUC_PATCHLEVEL__=0 -D__GXX_ABI_VERSION=102 -D__ELF__ -Dunix -D__gnu_linux__ -Dlinux -D__ELF__ -D__unix__ -D__gnu_linux__ -D__linux__ -D__unix -D__linux -Asystem=posix -D__NO_INLINE__ -D__STDC_HOSTED__=1 -D_GNU_SOURCE -Acpu=i386 -Amachine=i386 -Di386 -D__i386 -D__i386__ -D__tune_i586__ -D__tune_pentium__ gbug.cpp -D__GNUG__=3 -D__DEPRECATED -D__EXCEPTIONS -quiet -dumpbase gbug.cpp -version -o /usr4/john/tmp/ccWkFMi e.s
 GNU CPP version 3.2 (Mandrake Linux 9.0 3.2-1mdk) (cpplib) (i386 Linux/ELF)
 GNU C++ version 3.2 (Mandrake Linux 9.0 3.2-1mdk) (i586-mandrake-linux-gnu)
         compiled by GNU C version 3.2 (Mandrake Linux 9.0 3.2-1mdk).
 ignoring nonexistent directory "/usr/i586-mandrake-linux-gnu/include"
 #include "..." search starts here:
 #include <...> search starts here:
 
  /usr/include/c++/3.2
  /usr/include/c++/3.2/i586-mandrake-linux-gnu
  /usr/include/c++/3.2/backward
  /usr/local/include
  /usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2/include
  /usr/include
 End of search list.
  as -V -Qy -o /usr4/john/tmp/ccpgGezn.o /usr4/john/tmp/ccWkFMie.s
 GNU assembler version 2.12.90.0.15 (i586-mandrake-linux-gnu) using BFD version 2.12.90.0.15 20020717
  /usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2/collect2 --eh-frame-hdr -m elf_i386 -dynamic-linker /lib/ld-linux.so.2 /usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2/../../../crt1.o /usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2/../../../crti.o /usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2/crtbegin.o -L/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2 -L/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2/../../.. /usr4/john/tmp/ccpgGezn.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/gcc-lib/i586-mandrake-linux-gnu/3 .2/crtend.o /usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2/../../../crtn.o
 /usr4/john/tmp/ccpgGezn.o(.gnu.linkonce.d._ZTC6CBase54_6CBase3+0x3c): undefined reference to `virtual thunk [v:0,-12] to CBase3::~CBase3 [in-charge]()'
 /usr4/john/tmp/ccpgGezn.o(.gnu.linkonce.d._ZTC6CBase54_6CBase3+0x40): undefined reference to `virtual thunk [v:0,-12] to CBase3::~CBase3 [in-charge deleting]()'
 /usr4/john/tmp/ccpgGezn.o(.gnu.linkonce.d._ZTC6CBase54_6CBase3+0x44): undefined reference to `virtual thunk [v:0,-16] to CBase3::Import()'
 /usr4/john/tmp/ccpgGezn.o(.gnu.linkonce.d._ZTC6CBase54_6CBase3+0x48): undefined reference to `virtual thunk [v:0,-20] to CBase3::Export() const'
 collect2: ld returned 1 exit status
 
 --------------0A8AF3632A1EC3EEE823B606--
 


^ permalink raw reply	[flat|nested] 3+ messages in thread

* middle-end/9152: Undefined virtual thunks
@ 2003-01-03  9:16 john.sturton
  0 siblings, 0 replies; 3+ messages in thread
From: john.sturton @ 2003-01-03  9:16 UTC (permalink / raw)
  To: gcc-gnats


>Number:         9152
>Category:       middle-end
>Synopsis:       Undefined virtual thunks
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jan 03 01:16:01 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     john.sturton@sescoi.fr
>Release:        gcc version 3.2 (Mandrake Linux 9.0 3.2-1mdk)
>Organization:
>Environment:
Mandrake Linux 9.0 
>Description:
The linker complains about undefined references to virtual thunks, even though all class are completely defined. The same code compiles and links cleanly on:
MicroSoft VCC V4, 5, and 6
HP aCC VA.01.23
Sun CC V3.0.1 and 4.2.1
SGI MIPSpro V7.30
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/zip; name="gbug.zip"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="gbug.zip"

UEsDBBQAAAAIAJBOIy5fqYq/NwEAAJcEAAAIABUAZ2J1Zy5jcHBVVAkAA1BPFT4dURU+VXgEAFAE
6AOdU8tqwzAQvO9XLPQSQyFt7VxkemhSFwIllAZ6MgTVUUDgR/AjFIz77ZXsxLaqTUgLRqCd2dGs
PIIo5kWBi7cqFx8yLysez3kh7rGGffUZy4gB2ujkkMmt4yvo0FXx+wqOLuAy2Wd52YGPdxYcfA0w
RllalKhZjY/Tqe0D4GYrdjIV+BwsXp/eg41a1+vJpp1qxRPhhFCHp1FCddoAHQ2G4ykuopZ/G7Xt
K07jAxyvWbt+QNY3dcaIwcx5uj7HkHGvkLntkVaAUnVNVe+f5jxTZvZnc565dalDZuoQsHQYO5M9
qKEhY0N0kLrnQn1B2G6BcUhflisioxjCsGPsdwixbkyCFdOW0QZwTBtHlWYQr61uAAyfp+zZRZcq
elRR/ziZlphwmfZXiJiLsspT1O9bX6dGVVV/P1BLAwQUAAAACAAUUCMu766l/ScEAAD8CwAACAAV
AGdidWcubG9nVVQJAAM4URU+OFEVPlV4BABQBOgDrVZtU+M2EP5c/woN/XBwxG9JeMs0NwPBd2Qa
AoUcw5RhVEVWbBFbci05F/qhv70rOy/khrTnwkxirx7vPlqtdlfKqJ1wUcz9hycZi8eOq1g+8+2W
q8iMuQZzQzZz/babMlGcnHjoo9/++AlF+/vInqFo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ZCN8SWAiQtdXzXQdMHJMVUlDmhA7+fdQ77J1BNz5o40po7XvzFt3roEKE
cLMR0NfghgP9ASyQluiPGc91QRKk40JM0cOs4zVsv/lovlUEnc7flYAeuICrCMkj9ri79+HtfrW9
9/YLwY2EaSjUd3KwXdfBww0H+2kmc/0+rhzXdKXpbbgSzCtXEFx2lf5gLRtPByWGTRe5ofVReXuE
Y0QXysr+5x3+H1BLAQIXAxQAAAAIAJBOIy5fqYq/NwEAAJcEAAAIAA0AAAAAAAEAAACkgQAAAABn
YnVnLmNwcFVUBQADUE8VPlV4AABQSwECFwMUAAAACAAUUCMu766l/ScEAAD8CwAACAANAAAAAAAB
AAAApIFyAQAAZ2J1Zy5sb2dVVAUAAzhRFT5VeAAAUEsFBgAAAAACAAIAhgAAANQFAAAAAA==


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-03-17  9:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-15  3:42 middle-end/9152: Undefined virtual thunks bangerth
  -- strict thread matches above, loose matches on Subject: below --
2003-03-17  9:56 John Sturton
2003-01-03  9:16 john.sturton

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).