This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [JiÅÃ PaleÄek] [PATCH][C++] Fix constant refe rence in a lambda (PR c++/53488)


On Sat, Sep 1, 2012 at 10:50 AM, Jason Merrill <jason@redhat.com> wrote:
> On 08/31/2012 09:17 PM, Gabriel Dos Reis wrote:
>>
>> Hmm, would we not run the risk of doing the "wrong" capture if everything
>> is postponed?
>
>
> We wouldn't postpone name lookup, just the capture transformation.
>
> The long-term solution is to implement the rules properly, which depend on
> how a variable is used, not just qualities of the variable itself.

OK, thanks!

-- Gaby


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]