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

--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Tue Apr 30 20:31:26 2019
New Revision: 270715

URL: https://gcc.gnu.org/viewcvs?rev=270715&root=gcc&view=rev
Log:
        Backported from mainline
        2019-02-20  Jakub Jelinek  <ja...@redhat.com>

        PR c++/89405
        * decl.c (maybe_commonize_var): When clearing TREE_PUBLIC and
        DECL_COMMON, set DECL_INTERFACE_KNOWN.

        * g++.dg/cpp1z/inline-var5.C: New test.

Modified:
    branches/gcc-8-branch/gcc/cp/ChangeLog
    branches/gcc-8-branch/gcc/cp/decl.c
    branches/gcc-8-branch/gcc/testsuite/ChangeLog
    branches/gcc-8-branch/gcc/testsuite/g++.dg/cpp1z/inline-var5.C

Reply via email to