[Bug c++/89405] [8 Regression] ICE in import_export_decl, at cp/decl2.c:2959

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Apr 30 20:32:00 GMT 2019


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  <jakub@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


More information about the Gcc-bugs mailing list