https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83376
Bug ID: 83376 Summary: ICE in LTO streamer Product: gcc Version: 8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto Assignee: unassigned at gcc dot gnu.org Reporter: andi-gcc at firstfloor dot org CC: marxin at gcc dot gnu.org Target Milestone: --- Don't have a small test case right now, but will bisect When building Linux kernel LTO with gcc 8 I currently get an ICE. Doesn't happen on 7 and I think it's also recent on 8. In this case data_in->current_decl_data is NULL while reading a reference. 0xa58fe7 crash_signal ../../gcc/gcc/toplev.c:325 0x957a39 lto_file_decl_data_get_var_decl ../../gcc/gcc/lto-streamer.h:1210 0x957a39 lto_input_tree_ref(lto_input_block*, data_in*, function*, LTO_tags) ../../gcc/gcc/lto-streamer-in.c:366 0x957c1d lto_input_tree_1(lto_input_block*, data_in*, LTO_tags, unsigned int) ../../gcc/gcc/lto-streamer-in.c:1475 0x6bdc8c lto_read_decls ../../gcc/gcc/lto/lto.c:1791 0x6bdc8c lto_file_finalize ../../gcc/gcc/lto/lto.c:2055 0x6bdc8c lto_create_files_from_ids ../../gcc/gcc/lto/lto.c:2065 0x6bdc8c lto_file_read ../../gcc/gcc/lto/lto.c:2106 0x6bdc8c read_cgraph_and_symbols ../../gcc/gcc/lto/lto.c:2818 0x6bfdb1 lto_main() ../../gcc/gcc/lto/lto.c:3323