re PR c++/83556 (ICE in gimplify_expr, at gimplify.c:12004)
authorJakub Jelinek <jakub@redhat.com>
Tue, 2 Jan 2018 18:04:19 +0000 (19:04 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 2 Jan 2018 18:04:19 +0000 (19:04 +0100)
commit0a552ae22a4b7d4a71afab9f845398597a4d230d
tree428a95327cf02965ce2f196924807666ad0e43d7
parenta9ec0cfc364b811d25bf8c84ad47e4d85f9a4766
re PR c++/83556 (ICE in gimplify_expr, at gimplify.c:12004)

PR c++/83556
* tree.c (replace_placeholders_r): Pass NULL as last argument to
cp_walk_tree instead of d->pset.  If non-TREE_CONSTANT and
non-PLACEHOLDER_EXPR tree has been seen already, set *walk_subtrees
to false and return.
(replace_placeholders): Pass NULL instead of &pset as last argument
to cp_walk_tree.

* g++.dg/cpp0x/pr83556.C: New test.

From-SVN: r256086
gcc/cp/ChangeLog
gcc/cp/tree.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/pr83556.C [new file with mode: 0644]