[Bug c++/78931] [7 Regression] ICE on C++17 structured bindings from struct with reference member

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Jan 5 21:13:00 GMT 2017


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

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Jan  5 21:13:09 2017
New Revision: 244113

URL: https://gcc.gnu.org/viewcvs?rev=244113&root=gcc&view=rev
Log:
        PR c++/78931
        * decl.c (cp_finish_decomp): Remove probe variable, if tt is
        REFERENCE_REF_P, set tt to its operand.

        * g++.dg/cpp1z/decomp19.C: New test.

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


More information about the Gcc-bugs mailing list