https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62026
--- Comment #19 from Markus Trippelsdorf <trippels at gcc dot gnu.org> --- Program received signal SIGSEGV, Segmentation fault. lto_get_decl_name_mapping (decl_data=0x0, name=0x3fffaf6d4580 "_ZZ3fn1vE1b") at ../../gcc/gcc/lto-section-in.c:340 340 ../../gcc/gcc/lto-section-in.c: No such file or directory. (gdb) bt #0 lto_get_decl_name_mapping (decl_data=0x0, name=0x3fffaf6d4580 "_ZZ3fn1vE1b") at ../../gcc/gcc/lto-section-in.c:340 #1 0x000000001098f448 in get_constructor (this=0x3fffaf890080) at ../../gcc/gcc/varpool.c:280 #2 varpool_node::get_constructor (this=0x3fffaf890080) at ../../gcc/gcc/varpool.c:264 #3 0x0000000010981c50 in get_variable_section (decl=0x3fffaf7003f0, prefer_noswitch_p=<optimized out>) at ../../gcc/gcc/varasm.c:1121 #4 0x0000000010983ae4 in get_block_for_decl (decl=decl@entry=0x3fffaf7003f0) at ../../gcc/gcc/varasm.c:1194 #5 0x000000001098663c in make_decl_rtl (decl=0x3fffaf7003f0) at ../../gcc/gcc/varasm.c:1419 #6 0x0000000010989f44 in make_decl_rtl_for_debug (decl=0x3fffaf7003f0) at ../../gcc/gcc/varasm.c:1467 #7 0x00000000102523f8 in rtl_for_decl_location (decl=decl@entry=0x3fffaf7003f0) at ../../gcc/gcc/dwarf2out.c:15760 #8 0x00000000102871e8 in loc_list_from_tree (loc=loc@entry=0x3fffaf7003f0, want_address=<optimized out>) at ../../gcc/gcc/dwarf2out.c:14391 #9 0x000000001028dc14 in add_location_or_const_value_attribute (attr=DW_AT_location, cache_p=<optimized out>, decl=0x3fffaf7003f0, die=0x3fffaf880230) at ../../gcc/gcc/dwarf2out.c:15892 #10 add_location_or_const_value_attribute (die=0x3fffaf880230, decl=0x3fffaf7003f0, cache_p=cache_p@entry=false, attr=DW_AT_location) at ../../gcc/gcc/dwarf2out.c:15836 #11 0x0000000010297708 in dwarf2out_finish (filename=0x112f2440 "/home/trippels/tmp/ccZV1IhN.ltrans0.o") at ../../gcc/gcc/dwarf2out.c:24243 #12 0x000000001063dd80 in compile_file () at ../../gcc/gcc/toplev.c:602 #13 0x0000000010640844 in do_compile () at ../../gcc/gcc/toplev.c:1973 #14 toplev_main (argc=22, argv=0x112f2860) at ../../gcc/gcc/toplev.c:2049 #15 0x0000000010101730 in main (argc=<optimized out>, argv=<optimized out>) at ../../gcc/gcc/main.c:36 (gdb) up #1 0x000000001098f448 in get_constructor (this=0x3fffaf890080) at ../../gcc/gcc/varpool.c:280 280 ../../gcc/gcc/varpool.c: No such file or directory. (gdb) up #2 varpool_node::get_constructor (this=0x3fffaf890080) at ../../gcc/gcc/varpool.c:264 264 in ../../gcc/gcc/varpool.c (gdb) up #3 0x0000000010981c50 in get_variable_section (decl=0x3fffaf7003f0, prefer_noswitch_p=<optimized out>) at ../../gcc/gcc/varasm.c:1121 1121 ../../gcc/gcc/varasm.c: No such file or directory. (gdb) p debug_tree(decl) <var_decl 0x3fffaf7003f0 b type <integer_type 0x3fffaf6b07e0 int asm_written public SI size <integer_cst 0x3fffaf681380 constant 32> unit size <integer_cst 0x3fffaf681398 constant 4> align 32 symtab 16383 alias set -1 canonical type 0x3fffaf6b07e0 precision 32 min <integer_cst 0x3fffaf681338 -2147483648> max <integer_cst 0x3fffaf681350 2147483647> pointer_to_this <pointer_type 0x3fffaf6b1848>> static SI file timezone.ii line 9 col 14 size <integer_cst 0x3fffaf681380 32> unit size <integer_cst 0x3fffaf681398 4> align 32 context <function_decl 0x3fffaf843018 fn1> initial <error_mark 0x3fffaf681128>> $1 = void