This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [JiÅÃ PaleÄek] [PATCH][C++] Fix constant refe rence in a lambda (PR c++/53488)
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: Jason Merrill <jason at redhat dot com>
- Cc: JiÅÃ PaleÄek <jpalecek at web dot de>, Dodji Seketeli <dodji at seketeli dot org>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Sat, 1 Sep 2012 11:04:49 -0500
- Subject: Re: [JiÅÃ PaleÄek] [PATCH][C++] Fix constant refe rence in a lambda (PR c++/53488)
- References: <87d32cu6a9.fsf@seketeli.org> <50414213.8090700@redhat.com> <CAAiZkiAZKrsJME_bjXZzMkoE-7W88sdwjugMHqCJPk4hyiO2qQ@mail.gmail.com> <50422EDA.7090404@redhat.com>
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