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

            Bug ID: 98459
           Summary: [11 Regression] ICE in
                    linemap_position_for_line_and_column, at
                    libcpp/line-map.c:923
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: preprocessor
          Assignee: unassigned at gcc dot gnu.org
          Reporter: asolokha at gmx dot com
  Target Milestone: ---

g++-11.0.0-alpha20201227 snapshot (g:9a48892bea70a1e6a82e24b882f22807b73debe7)
ICEs when compiling gcc/testsuite/gcc.dg/pr89410-1.c:

% g++-11.0.0 -w -c gcc/testsuite/gcc.dg/pr89410-1.c
gcc/testsuite/gcc.dg/pr89410-1.c:1:1: internal compiler error: in
linemap_position_for_line_and_column, at libcpp/line-map.c:923
    1 | /* { dg-options "" } */
      | ^
0x1cc81aa linemap_position_for_line_and_column(line_maps*, line_map_ordinary
const*, unsigned int, unsigned int)
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201227/work/gcc-11-20201227/libcpp/line-map.c:923
0x1cc9ac1 linemap_position_for_loc_and_offset(line_maps*, unsigned int,
unsigned int)
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201227/work/gcc-11-20201227/libcpp/line-map.c:998
0xa6ce53 cp_lexer_new_main
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201227/work/gcc-11-20201227/gcc/cp/parser.c:676
0xa6ce53 c_parse_file()
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201227/work/gcc-11-20201227/gcc/cp/parser.c:45114
0xb93b2d c_common_parse_file()
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201227/work/gcc-11-20201227/gcc/c-family/c-opts.c:1211

Reply via email to