[PR c++/87185] ICE in prune-lambdas
authorPádraig Brady <p@draigbrady.com>
Wed, 5 Sep 2018 09:59:08 +0000 (09:59 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Wed, 5 Sep 2018 09:59:08 +0000 (09:59 +0000)
commit86e95f35c522136ee6ec8b648b2fd415360774bc
tree6893b66a5908995889c2f03cabce24a941166eb6
parent888157af3ef730e1e66c5e84ade11036a09d2205
[PR c++/87185] ICE in prune-lambdas

https://gcc.gnu.org/ml/gcc-patches/2018-09/msg00249.html
cp/
PR c++/87185
* lambda.c (prune_lambda_captures): Protect against const_vars.get
returning NULL.
testsuite/
PR c++/87185
* g++.dg/pr87185.C: New.

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