[LLVMbugs] [Bug 12020] New: GNU lambda extension: creating a capture variable with a value

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Feb 16 14:24:52 PST 2012


http://llvm.org/bugs/show_bug.cgi?id=12020

             Bug #: 12020
           Summary: GNU lambda extension: creating a capture variable with
                    a value
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++0x
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: dgregor at apple.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified


GCC's implementation of lambda expressions allows a lambda like this:

  [i=1]{return i;}()

where this creates a member named 'i' in the lambda and initializes it with the
value one. It's like capturing a variable, except that there is no variable.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list