Need help with name demangling

Martin von Loewis martin@mira.isdn.cs.tu-berlin.de
Sat Sep 19 01:06:00 GMT 1998


> Is there a name mangling/demangling utility for g++?

Please try <prefix>/bin/c++filt.

> We're having some problems where the compiler generates a bogus call to a 
> destructor which should never be generated because the destructor is 
> virtual, and it's difficult to tell which call in the generated assembly 
> is the culprit because all the names are mangled...

A destructor is always called, even if it is virtual and you are
destroying a derived-class instance. After the destructor of the
derived class is done, the base class destructor is called.

Regards,
Martin



More information about the Gcc-bugs mailing list