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] |
On 09/02/2013 02:27 PM, Adam Butcher wrote:
Bug 41933 is specifically about lambda capture; I think you're running into something else.The problem is in expanding the 'ts' capture from the 5.1.2.5. It looks like this: 1 auto vglambda = [](auto printer) { 2 return [=](auto&& ... ts) { // OK: ts is a function parameter pack 3 printer(std::forward<decltype(ts)>(ts)...); 4 return [=]() { 5 printer(ts ...); 6 }; 7 }; 8 }; It is the expansion of the captured 'ts' on line 5 that I think yields the bug.
Ah, yes, that is 41933. I thought you were saying that a testcase without the innermost lambda would fail.
Jason
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |