This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r248627 - in /branches/gcc-5-branch/gcc: cp/Cha...
- From: jakub at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Tue, 30 May 2017 07:44:12 -0000
- Subject: r248627 - in /branches/gcc-5-branch/gcc: cp/Cha...
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