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

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Dec 15 21:39:20 2017
New Revision: 255705

URL: https://gcc.gnu.org/viewcvs?rev=255705&root=gcc&view=rev
Log:
        PR c++/81197
        * cp-tree.h (cp_maybe_mangle_decomp): Declare.
        * decl.c (cp_maybe_mangle_decomp): New function.
        (cp_finish_decomp): Don't SET_DECL_ASSEMBLER_NAME here.
        * parser.c (cp_convert_range_for,
        cp_parser_decomposition_declaration): Call cp_maybe_mangle_decomp.
        * pt.c (tsubst_expr): Likewise.
        * mangle.c (find_decomp_unqualified_name): New function.
        (write_unqualified_name): Handle DECL_DECOMPOSITION_P
        where DECL_ASSEMBLER_NAME is already set.

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

Added:
    trunk/gcc/testsuite/g++.dg/cpp1z/decomp34.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/cp/decl.c
    trunk/gcc/cp/mangle.c
    trunk/gcc/cp/parser.c
    trunk/gcc/cp/pt.c
    trunk/gcc/testsuite/ChangeLog

Reply via email to