Hello everyone, i encountered this error while extending my program: I tested gcc 4.8.4 and 4.9.2 with the same result. For a fairly simple code snippit causing that error, please visit: http://stackoverflow.com/questions/28202334/gcc-g-internal-error-c-templated-lambda Thanks, Lazarus
Clang accepts the code.
This is fixed for 5.2. I'm adding a testcase and closing the bug.
Author: paolo Date: Fri Jul 10 02:44:39 2015 New Revision: 225648 URL: https://gcc.gnu.org/viewcvs?rev=225648&root=gcc&view=rev Log: 2015-07-09 Paolo Carlini <paolo.carlini@oracle.com> PR c++/64848 * g++.dg/cpp0x/lambda/lambda-ice14.C: New. Added: trunk/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-ice14.C Modified: trunk/gcc/testsuite/ChangeLog
Done.