https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89405
Bug ID: 89405 Summary: [8/9 Regression] ICE in import_export_decl, at cp/decl2.c:2959 Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gs...@t-online.de Target Milestone: --- The combination "-std=c++17 -fno-weak" affects several testsuite cases. Changed between 20180527 and 20180610. $ cat z1.cc #include <new> int* f (void* a) { return new(a) int(); } $ g++-9-20190217 -c z1.cc -std=c++14 $ g++-9-20190217 -c z1.cc -std=c++14 -fno-weak $ g++-9-20190217 -c z1.cc -std=c++17 $ $ g++-7 -c z1.cc -std=c++17 -fno-weak $ g++-9-20180527 -c z1.cc -std=c++17 -fno-weak $ g++-9-20190217 -c z1.cc -std=c++17 -fno-weak z1.cc:5:1: internal compiler error: in import_export_decl, at cp/decl2.c:2959 5 | } | ^ 0x65c5cb import_export_decl(tree_node*) ../../gcc/cp/decl2.c:2959 0x65fc67 c_parse_final_cleanups() ../../gcc/cp/decl2.c:4987