re PR c++/71570 (ICE on invalid variable capture in cxx_incomplete_type_diagnostic...
commiteb08656284916b5bc6b4bfcd5561aa17bdc5ebeb
authorPaolo Carlini <paolo.carlini@oracle.com>
Wed, 26 Jul 2017 21:46:22 +0000 (26 21:46 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Wed, 26 Jul 2017 21:46:22 +0000 (26 21:46 +0000)
treeb0d04ab14c780f52cd2ac51f7205d492e008bd82
parent7e2a8417f76b13f06c6a5e21a32e1b83d763d119
re PR c++/71570 (ICE on invalid variable capture in cxx_incomplete_type_diagnostic, at cp/typeck2.c:55)

/cp
2017-07-26  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/71570
* lambda.c (add_capture): Early return if we cannot capture by
reference.

/testsuite
2017-07-26  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/71570
* g++.dg/cpp0x/lambda/lambda-ice17.C: New.

From-SVN: r250591
gcc/cp/ChangeLog
gcc/cp/lambda.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-ice17.C [new file with mode: 0644]