[cxx-abi-dev] [Cxx-abi-dev] Mangling 'this' in trailing-return-type

Doug Gregor doug.gregor at gmail.com
Mon Apr 16 05:31:18 UTC 2012


On Tue, Sep 20, 2011 at 9:36 AM, John McCall <rjmccall at apple.com> wrote:
> On Sep 20, 2011, at 5:35 AM, Mike Herrick wrote:
>> We think the implicit and explicit cases should have different manglings even if, from a SFINAE standpoint, they're treated the same, and have a preference for the "mangled as written" implicit mangling.
>
> I agree.  Technically, this means that lookups that find class members and those that don't will be mangled the same, despite the impact on ADL, but the mangled-as-written mantra already causes us to gloss over stuff like that, and I can't think of a situation where it's a problem with valid code.

I don't see a resolution to this. Do we stick with GCC's "(*this)."
mangling, or mangle as written?

  - Doug


More information about the cxx-abi-dev mailing list