https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91288
Bug ID: 91288 Summary: [8/9/10 Regression] ICE in add_symbol_to_partition_1, at lto/lto-partition.c:153 since r249224 Product: gcc Version: 10.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: lto Assignee: unassigned at gcc dot gnu.org Reporter: marxin at gcc dot gnu.org CC: hubicka at gcc dot gnu.org, marxin at gcc dot gnu.org Target Milestone: --- Starting from the revision we ICE on: $ gcc -c 2.ii && g++ 2.o 1.ii -flto -O2 1.ii:42:45: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 42 | InetAddr(const std::basic_string<char> &) throw(FWException, | ^~~~~ 1.ii:48:48: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated] 48 | InetAddr::InetAddr(const basic_string<char> &) throw(FWException, | ^~~~~ lto1: internal compiler error: in add_symbol_to_partition_1, at lto/lto-partition.c:153 0x5aaef9 add_symbol_to_partition_1 /home/marxin/Programming/gcc/gcc/lto/lto-partition.c:153 0x7e0fc2 add_symbol_to_partition_1 /home/marxin/Programming/gcc/gcc/lto/lto-partition.c:215 0x7e31c6 lto_balanced_map(int, int) /home/marxin/Programming/gcc/gcc/lto/lto-partition.c:596 0x7da0af do_whole_program_analysis /home/marxin/Programming/gcc/gcc/lto/lto.c:482 0x7da0af lto_main() /home/marxin/Programming/gcc/gcc/lto/lto.c:628 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions. lto-wrapper: fatal error: g++ returned 1 exit status compilation terminated. /usr/bin/ld: error: lto-wrapper failed collect2: error: ld returned 1 exit status