re PR c++/89405 (ICE in import_export_decl, at cp/decl2.c:2959)
authorJakub Jelinek <jakub@redhat.com>
Thu, 21 Feb 2019 00:08:59 +0000 (01:08 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 21 Feb 2019 00:08:59 +0000 (01:08 +0100)
commit73ab3eb732462887817e000a23b86b8a24641c07
treebe689c2ac368b51d9ebde07c66eb5b3647c30faa
parent37d7267f8093e6720b05fec5a8eac26ade0b55ad
re PR c++/89405 (ICE in import_export_decl, at cp/decl2.c:2959)

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.

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