[Bug c++/87122] [8/9 Regression] ICE in tsubst_decomp_names

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Aug 29 12:28:00 GMT 2018


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

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed Aug 29 12:27:55 2018
New Revision: 263953

URL: https://gcc.gnu.org/viewcvs?rev=263953&root=gcc&view=rev
Log:
        PR c++/87122
        * pt.c (tsubst_expr) <case RANGE_FOR_STMT>: If
        processing_template_decl and decl is structured binding decl, call
        cp_finish_decomp.

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

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


More information about the Gcc-bugs mailing list