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

--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Mon Mar 20 02:22:43 2017
New Revision: 246273

URL: https://gcc.gnu.org/viewcvs?rev=246273&root=gcc&view=rev
Log:
        PR c++/80084 - wrong C++17 decomposition by reference of parameter.

        * decl.c (cp_finish_decomp): Don't pull out the DECL_INITIAL of a
        reference decomposition.

Added:
    trunk/gcc/testsuite/g++.dg/cpp1z/decomp27.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/decl.c

Reply via email to