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

2019-05-01 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89405

Jakub Jelinek  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--- Comment #8 from Jakub Jelinek  ---
Fixed for 8.4+ too.

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

2019-04-30 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89405

--- Comment #7 from Jakub Jelinek  ---
Author: jakub
Date: Tue Apr 30 20:31:26 2019
New Revision: 270715

URL: https://gcc.gnu.org/viewcvs?rev=270715=gcc=rev
Log:
Backported from mainline
2019-02-20  Jakub Jelinek  

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

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

2019-02-20 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89405

Jakub Jelinek  changed:

   What|Removed |Added

Summary|[8/9 Regression] ICE in |[8 Regression] ICE in
   |import_export_decl, at  |import_export_decl, at
   |cp/decl2.c:2959 |cp/decl2.c:2959

--- Comment #6 from Jakub Jelinek  ---
Fixed on the trunk so far.