re PR c++/89187 (ICE in initialize_argument_information, at calls.c:2023)
authorJakub Jelinek <jakub@gcc.gnu.org>
Tue, 5 Feb 2019 22:28:25 +0000 (23:28 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 5 Feb 2019 22:28:25 +0000 (23:28 +0100)
commitd397e3948ec945c8c3b4dc695e1b0b5820365a39
treed28c490bd10459d8af9c855f87d56d907710a30b
parent216090cc0fb7dc4de5fa9176860c845d5646c6b7
re PR c++/89187 (ICE in initialize_argument_information, at calls.c:2023)

PR c++/89187
* optimize.c (maybe_thunk_body): Clear TREE_ADDRESSABLE on
PARM_DECLs of the thunk.
* lambda.c (maybe_add_lambda_conv_op): Likewise.

* g++.dg/opt/pr89187.C: New test.

From-SVN: r268564
gcc/cp/ChangeLog
gcc/cp/lambda.c
gcc/cp/optimize.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/opt/pr89187.C [new file with mode: 0644]