[cfe-dev] Lambda expr AST representation

Richard Smith richard at metafoo.co.uk
Thu Oct 4 13:10:14 PDT 2012


On Thu, Oct 4, 2012 at 11:48 AM, James Dennett <james.dennett at gmail.com>wrote:

> On Thu, Oct 4, 2012 at 11:23 AM, Eli Friedman <eli.friedman at gmail.com>
> wrote:
> > On Thu, Oct 4, 2012 at 4:05 AM, Abramo Bagnara
> > <abramo.bagnara at bugseng.com> wrote:
> [...]
> >> Also, I've noted that lambda class fields generated for captured
> >> variables are anonymous instead to have the name of the captured
> variable.
> >
> > That's what the standard says, sorry.
>
> Does it?  That doesn't match my understanding, which is that the
> standard doesn't specify the names.  Can you point at that text in the
> standard?
>

5.1.2/14: "For each entity captured by copy, an unnamed non-static data
member is declared in the closure type".
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20121004/cbd1638e/attachment.html>


More information about the cfe-dev mailing list