From abd8d9e75dd7fb34a653592480f3a030113883d0 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Tue, 30 May 2017 09:44:11 +0200 Subject: backport: re PR c++/77739 (internal compiler error: in create_tmp_var, at gimple-expr.c:524) Backported from mainline 2016-11-23 Jakub Jelinek PR c++/77739 * cp-gimplify.c (cp_gimplify_tree) : 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: r248627 --- gcc/cp/ChangeLog | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'gcc/cp/ChangeLog') diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 98bb4fc..75be7ea 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,6 +1,19 @@ 2017-05-30 Jakub Jelinek Backported from mainline + 2016-11-23 Jakub Jelinek + + PR c++/77739 + * cp-gimplify.c (cp_gimplify_tree) : 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. + 2016-11-18 Jakub Jelinek PR c++/77285 -- cgit v1.1