[cxx-abi-dev] ABI: Mangling of reference temporaries

Mark Mitchell mark at codesourcery.com
Wed Jul 18 05:23:24 UTC 2001


> Thoughts?
>

That you've got to be kidding. :-) :-)

If this doesn't drive home the point that I tried to make in the committe 
meetings (namely, that we should either leave this undefined -- or simply 
ban inlining of functions with local statics), nothing will. :-)

There is, in my opinion, absolutely no hope of getting multiple compilers
to handle this in the same way.  We've already tried to implement this ABI 
in three different compilers, and we already had to punt on some of the 
details about manglings of templates with non-type template parameters, and 
the details about discriminators.

We should not kid ourselves that we can make this work.

In fact, I would go back and change the spec to say that inlining
functions with local classes and/or local statics causes undefined
behavior.

-- 
Mark Mitchell                mark at codesourcery.com
CodeSourcery, LLC            http://www.codesourcery.com



More information about the cxx-abi-dev mailing list