[PR c++/83160] local ref to capture

Nathan Sidwell nathan@acm.org
Thu Jan 18 12:44:00 GMT 2018


On 01/17/2018 01:44 PM, Jason Merrill wrote:

> This makes sense to me.  But I think we'd want also that flag set on
> the ck_identity inside the ck_base that direct_reference_binding
> creates, so setting it first rather than in an else.

Ah yes, you spotted the bit I failed to mention.  (I think we get away 
with it because class objects always have sufficient lvalueness, but why 
lie?)

nathan

-- 
Nathan Sidwell
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 83160-2.diff
Type: text/x-patch
Size: 3883 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20180118/bd319763/attachment.bin>


More information about the Gcc-patches mailing list