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

            Bug ID: 69650
           Summary: [6 Regression] ICE in linemap_line_start, at
                    libcpp/line-map.c:803
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
  Target Milestone: ---

Hello.

During reduction of another ICE, I observed the following one:

$ cat Unified_cpp_js_src35.ii
namespace js {}
# 9 "" 2
namespace js {
int a;
}

$ c++ -flto Unified_cpp_js_src35.ii
line-map.c: file "<stdin>" left but not entered
lto1: internal compiler error: in linemap_line_start, at libcpp/line-map.c:803
0x17b4ebc linemap_line_start(line_maps*, unsigned int, unsigned int)
        ../../libcpp/line-map.c:803
0xbadeb3 lto_location_cache::apply_location_cache()
        ../../gcc/lto-streamer-in.c:193
0x7a3399 lto_read_decls
        ../../gcc/lto/lto.c:1788
0x7a3c38 lto_file_finalize
        ../../gcc/lto/lto.c:2043
0x7a3c8c lto_create_files_from_ids
        ../../gcc/lto/lto.c:2053
0x7a3db8 lto_file_read
        ../../gcc/lto/lto.c:2094
0x7a7632 read_cgraph_and_symbols
        ../../gcc/lto/lto.c:2804
0x7a86bf lto_main()
        ../../gcc/lto/lto.c:3304

Martin

Reply via email to