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

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Jun 22 21:06:41 2018
New Revision: 261948

URL: https://gcc.gnu.org/viewcvs?rev=261948&root=gcc&view=rev
Log:
        Backported from mainline
        2018-04-05  Jakub Jelinek  <ja...@redhat.com>

        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.

Added:
    branches/gcc-7-branch/gcc/testsuite/g++.dg/cpp1z/decomp41.C
Modified:
    branches/gcc-7-branch/gcc/cp/ChangeLog
    branches/gcc-7-branch/gcc/cp/decl.c
    branches/gcc-7-branch/gcc/testsuite/ChangeLog

Reply via email to