More mangling issues

Christophe de Dinechin ddd at cup.hp.com
Wed Mar 15 22:21:51 UTC 2000


Jim Dehnert wrote:
>
> > No; this declaration is an object declaration. There is no need to put
> > the type of in object into its external name, so that would be _Z3foo.
> > The type is specified only for a function (or method).
> 
> Good point.  So the original mangling _Z3fooPPM2ABFiE, is invalid.
> (Though, if types were present for objects, I think my declaration
> would be the right one?)

Why do we half-mangle external declarations? That is, why _Z3foo rather than
foo? There is something that reads "[...] and file scope variables are not
mangled"

Christophe




More information about the cxx-abi-dev mailing list