https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77739

--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed Dec  7 22:55:04 2016
New Revision: 243407

URL: https://gcc.gnu.org/viewcvs?rev=243407&root=gcc&view=rev
Log:
        Backported from mainline
        2016-11-23  Jakub Jelinek  <ja...@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-6-branch/gcc/testsuite/g++.dg/cpp1y/pr77739.C
Modified:
    branches/gcc-6-branch/gcc/cp/ChangeLog
    branches/gcc-6-branch/gcc/cp/cp-gimplify.c
    branches/gcc-6-branch/gcc/testsuite/ChangeLog

Reply via email to