https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96316
Iain Sandoe <iains at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |INVALID
Status|UNCONFIRMED |RESOLVED
--- Comment #1 from Iain Sandoe <iains at gcc dot gnu.org> ---
In fact, this is correct operation; decided jointly between the implementors
during WG21 sessions as intended behaviour.
Essentially, the lambda object pointer is treated the same way as the 'this'
pointer for a regular method (so that the traits, parameter preview and
allocator lookup are all passed a reference to the object).
At present, not sure if clang has made the amendment - but MSVC and GCC should
both comply with the intention.
If you believe that there's some other issue with this please reopen.