re PR c++/84618 (ICE in build_capture_proxy, at cp/lambda.c:460)
authorPaolo Carlini <paolo.carlini@oracle.com>
Mon, 5 Mar 2018 15:40:15 +0000 (15:40 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Mon, 5 Mar 2018 15:40:15 +0000 (15:40 +0000)
commit5625e74790579b589106e717dba7820933e541f1
tree024dc9c2b60e4d0d63eeaa983a0a814b84156d75
parent800916ab502edfefa9efb455c0a9e6455dbdccf5
re PR c++/84618 (ICE in build_capture_proxy, at cp/lambda.c:460)

/cp
2018-03-05  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/84618
* parser.c (cp_parser_lambda_introducer): Reject any capture not
involving a VAR_DECL or a PARM_DECL.

/testsuite
2018-03-05  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/84618
* g++.dg/cpp0x/lambda/lambda-ice29.C: New.
* g++.dg/cpp0x/lambda/lambda-ice17.C: Adjust.
* g++.dg/cpp0x/lambda/lambda-ice23.C: Likewise.

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