🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Andreas Schwab Wed, 27 Jan 1993 03:01
G++ 2.3.3: inconsistent name mangling
#1435
Author: Andreas Schwab
Date: Wed, 27 Jan 1993 03:01
36 lines
1531 bytes
The virtual table of struct B gets different names depending on the
presence of the forward declaration of struct B in this situation:

struct B;
struct x
{
  friend struct B;
};
struct A { virtual ~A (); };
struct B : virtual A {};

If the forward declaration is present, the following names are
generated:

00000000 t gcc2_compiled.
00000000 t __$_1B
00000060 d __vt$1B$1A
         U __$_1A
         U ___builtin_delete

When the first line is deleted, the following names are generated:

00000000 t gcc2_compiled.
00000000 t __$_1B
00000060 d __vt$B$1A
         U __$_1A
         U ___builtin_delete

When the friend declaration is deleted, the same names as in the first
case are generated, independent of the presence of the forward
declaration for struct B.

This situation occurs in libg++ 2.3 with class istream.
--
Andreas Schwab
schwab@ls5.informatik.uni-dortmund.de
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads