https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117166

--- Comment #3 from Sam James <sjames at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #2)
>   linemap_assert (SOURCE_LINE (map, r) == to_line);
> 
> maybe some overflow somewhere that's not catched.


/home/sam/git/gcc/libcpp/line-map.cc:857:18: runtime error: signed integer
overflow: 244639167 * 12 cannot be represented in type 'int'
    #0 0xcc4ee06 in linemap_line_start(line_maps*, unsigned int, unsigned int)
(/home/sam/build/bisect-gcc-pfx/libexec/gcc/x86_64-pc-linux-gnu/15.0.0/lto1+0xcc4ee06)
    #1 0x2ed5cf8 in lto_location_cache::apply_location_cache()
(/home/sam/build/bisect-gcc-pfx/libexec/gcc/x86_64-pc-linux-gnu/15.0.0/lto1+0x2ed5cf8)
    #2 0x2ef36c8 in lto_read_body_or_constructor(lto_file_decl_data*,
symtab_node*, char const*, lto_section_type) [clone .constprop.0]
(/home/sam/build/bisect-gcc-pfx/libexec/gcc/x86_64
-pc-linux-gnu/15.0.0/lto1+0x2ef36c8)
    #3 0x134b620 in cgraph_node::get_untransformed_body()
(/home/sam/build/bisect-gcc-pfx/libexec/gcc/x86_64-pc-linux-gnu/15.0.0/lto1+0x134b620)
    #4 0x13d32ef in cgraph_node::expand()
(/home/sam/build/bisect-gcc-pfx/libexec/gcc/x86_64-pc-linux-gnu/15.0.0/lto1+0x13d32ef)
    #5 0x13fa6e0 in symbol_table::compile() [clone .part.0]
(/home/sam/build/bisect-gcc-pfx/libexec/gcc/x86_64-pc-linux-gnu/15.0.0/lto1+0x13fa6e0)
    #6 0xccf97a in lto_main()
(/home/sam/build/bisect-gcc-pfx/libexec/gcc/x86_64-pc-linux-gnu/15.0.0/lto1+0xccf97a)
    #7 0x3dd86cc in compile_file()
(/home/sam/build/bisect-gcc-pfx/libexec/gcc/x86_64-pc-linux-gnu/15.0.0/lto1+0x3dd86cc)
    #8 0xada8b8 in toplev::main(int, char**)
(/home/sam/build/bisect-gcc-pfx/libexec/gcc/x86_64-pc-linux-gnu/15.0.0/lto1+0xada8b8)
    #9 0xae2714 in main
(/home/sam/build/bisect-gcc-pfx/libexec/gcc/x86_64-pc-linux-gnu/15.0.0/lto1+0xae2714)
    #10 0x711b8d85b746 in __libc_start_call_main
../sysdeps/nptl/libc_start_call_main.h:58
    #11 0x711b8d85b7f6 in __libc_start_main_impl ../csu/libc-start.c:360
    #12 0xae4100 in _start
(/home/sam/build/bisect-gcc-pfx/libexec/gcc/x86_64-pc-linux-gnu/15.0.0/lto1+0xae4100)

Reply via email to