[cxx-abi-dev] Mangling sizeof

Lawrence Crowl crowl at google.com
Thu Mar 5 19:02:03 UTC 2009


On 3/5/09, Doug Gregor <doug.gregor at gmail.com> wrote:
> On Thu, Mar 5, 2009 at 12:20 PM, Lawrence Crowl <crowl at google.com> wrote:
> > On 3/4/09, Jason Merrill <jason at redhat.com> wrote:
> > > I've been looking at some old GCC bug reports and noticed that my
> > > recent mangling improvements didn't extend the use of the expression
> > > type stubs to sizeof expressions, so we still run into mangling holes
> > > in that context.  What do people think about using the type stubs in
> > > sizeof expressions as well?  This would break ABI compatibility with
> > > most existing uses of sizeof in template signatures, but I suspect
> > > those are very few currently because of the limitations of expression
> > > mangling (prior to the recent enhancements).
> >
> > What do you think of associating such a change with the C++0x flag?
>
> I am against making the ABI differ for C++98 and C++0x, unless we're
> forced into it.

Hm.  I thought the issue was making the ABI differ for C++98 and C++98
versus for C++98 and C++0x.  Of the two, I think an incompatibility
in the latter pair would be less trouble all around.

-- 
Lawrence Crowl



More information about the cxx-abi-dev mailing list