re PR c++/85208 (ICE with #pragma weak and structured binding)
authorJakub Jelinek <jakub@redhat.com>
Thu, 5 Apr 2018 21:29:51 +0000 (23:29 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 5 Apr 2018 21:29:51 +0000 (23:29 +0200)
commita1afa75e015d3b139fc8fa0f1786ae4a9ccbf022
treeb0f25558b46801646beea22e5e01d680a6adaed3
parentd600a0ceb1f768e0f6d3d8dafc0c79430feb03ea
re PR c++/85208 (ICE with #pragma weak and structured binding)

PR c++/85208
* decl.c (start_decl): For DECL_DECOMPOSITION_P decls, don't call
maybe_apply_pragma_weak here...
(cp_maybe_mangle_decomp): ... but call it here instead.

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

From-SVN: r259155
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1z/decomp41.C [new file with mode: 0644]