This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/77739] [5 Regression] internal compiler error: in create_tmp_var, at gimple-expr.c:524
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 30 May 2017 07:44:43 +0000
- Subject: [Bug c++/77739] [5 Regression] internal compiler error: in create_tmp_var, at gimple-expr.c:524
- Auto-submitted: auto-generated
- References: <bug-77739-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77739
--- Comment #11 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Tue May 30 07:44:11 2017
New Revision: 248627
URL: https://gcc.gnu.org/viewcvs?rev=248627&root=gcc&view=rev
Log:
Backported from mainline
2016-11-23 Jakub Jelinek <jakub@redhat.com>
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.
Added:
branches/gcc-5-branch/gcc/testsuite/g++.dg/cpp1y/pr77739.C
Modified:
branches/gcc-5-branch/gcc/cp/ChangeLog
branches/gcc-5-branch/gcc/cp/cp-gimplify.c
branches/gcc-5-branch/gcc/testsuite/ChangeLog