re PR c++/71822 (ICE: in gimplify_expr, at gimplify.c:11025)
authorJakub Jelinek <jakub@redhat.com>
Mon, 18 Jul 2016 18:40:12 +0000 (20:40 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 18 Jul 2016 18:40:12 +0000 (20:40 +0200)
commitf4d902955b3d123937ab85866c51f9b665591604
tree8238e32a411871e52a341e9c9430771dcdacfd71
parentf2111a364039343a3314736d376990dfa549e650
re PR c++/71822 (ICE: in gimplify_expr, at gimplify.c:11025)

PR c++/71822
* cp-gimplify.c (cp_gimplify_expr) <case VEC_INIT_EXPR>: Recursively
fold *expr_p before genericizing it.

* g++.dg/template/defarg21.C: New test.

From-SVN: r238440
gcc/cp/ChangeLog
gcc/cp/cp-gimplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/defarg21.C [new file with mode: 0644]