decl.c (cp_finish_decomp): For DECL_NAMESPACE_SCOPE_P decl, set DECL_ASSEMBLER_NAME.
authorJakub Jelinek <jakub@redhat.com>
Tue, 15 Nov 2016 17:05:23 +0000 (18:05 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 15 Nov 2016 17:05:23 +0000 (18:05 +0100)
commita0f5b987521323a66d307fbccd57e0020509dd97
tree532b81c3e858c986b59c56ab5e42aafddb9e5c99
parent84c1b9d3d4d1ead79344b4a9403ec3d74e04d5ef
decl.c (cp_finish_decomp): For DECL_NAMESPACE_SCOPE_P decl, set DECL_ASSEMBLER_NAME.

* decl.c (cp_finish_decomp): For DECL_NAMESPACE_SCOPE_P decl,
set DECL_ASSEMBLER_NAME.
* parser.c (cp_parser_decomposition_declaration): Likewise
if returning error_mark_node.
* mangle.c (mangle_decomp): New function.
* cp-tree.h (mangle_decomp): New declaration.

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

From-SVN: r242434
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/mangle.c
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1z/decomp13.C [new file with mode: 0644]