From patchwork Wed Oct 10 10:16:54 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [C++,testcase] PR 53741 Date: Wed, 10 Oct 2012 00:16:54 -0000 From: Paolo Carlini X-Patchwork-Id: 190605 Message-Id: <50754B16.8060205@oracle.com> To: "gcc-patches@gcc.gnu.org" Hi, adding the testcase and closing the PR as fixed. Thanks, Paolo. //////////////////////// 2012-10-10 Paolo Carlini PR c++/53741 * g++.dg/cpp0x/lambda/lambda-ice9.C: New. Index: g++.dg/cpp0x/lambda/lambda-ice9.C =================================================================== --- g++.dg/cpp0x/lambda/lambda-ice9.C (revision 0) +++ g++.dg/cpp0x/lambda/lambda-ice9.C (working copy) @@ -0,0 +1,18 @@ +// PR c++/53741 +// { dg-do compile { target c++11 } } + +struct X +{ + template static void bar() {} + + template void foo(T p) + { + [&] { bar(); }; + } +}; + +int main() +{ + X x; + x.foo(3); +}