re PR c++/58566 ([c++11] ICE with invalid expression in lambda body)
authorVille Voutilainen <ville.voutilainen@gmail.com>
Mon, 12 Oct 2015 08:55:19 +0000 (11:55 +0300)
committerVille Voutilainen <ville@gcc.gnu.org>
Mon, 12 Oct 2015 08:55:19 +0000 (11:55 +0300)
commit7624ca36a275ec0c86f6740b079dcc08215883bf
tree1f4d6eff28e77c55180e3fe94d2ec975f135935b
parent15f128a7193fe0724c9e1e4f0d6a015af7f1b97d
re PR c++/58566 ([c++11] ICE with invalid expression in lambda body)

PR c++/58566

/cp
2015-10-12  Ville Voutilainen  <ville.voutilainen@gmail.com>

PR c++/58566
* lambda.c (lambda_return_type): Return error_mark_node
instead of void_type_node for the error cases.

/testsuite
2015-10-12  Ville Voutilainen  <ville.voutilainen@gmail.com>

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

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