re PR c++/77739 (internal compiler error: in create_tmp_var, at gimple-expr.c:524)
authorJakub Jelinek <jakub@redhat.com>
Wed, 23 Nov 2016 15:54:39 +0000 (16:54 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 23 Nov 2016 15:54:39 +0000 (16:54 +0100)
commite2df23288c44590ba0ea99f03a7f16b5d113376e
tree5626b56e9d7cf58efbbf43c1fe8f990dbc77e0fb
parent756316926e5a112e15c800de34e4c2fc501d45be
re PR c++/77739 (internal compiler error: in create_tmp_var, at gimple-expr.c:524)

PR c++/77739
* cp-gimplify.c (cp_gimplify_tree) <case VEC_INIT_EXPR>: Pass
false as handle_invisiref_parm_p to cp_genericize_tree.
(struct cp_genericize_data): Add handle_invisiref_parm_p field.
(cp_genericize_r): Don't wrap is_invisiref_parm into references
if !wtd->handle_invisiref_parm_p.
(cp_genericize_tree): Add handle_invisiref_parm_p argument,
set wtd.handle_invisiref_parm_p to it.
(cp_genericize): Pass true as handle_invisiref_parm_p to
cp_genericize_tree.  Formatting fix.

* g++.dg/cpp1y/pr77739.C: New test.

From-SVN: r242766
gcc/cp/ChangeLog
gcc/cp/cp-gimplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1y/pr77739.C [new file with mode: 0644]