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

            Bug ID: 92370
           Summary: [10 Regression] ICE in cp_lexer_consume_token, at
                    cp/parser.c:1118
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Keywords: error-recovery, ice-on-invalid-code
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: asolokha at gmx dot com
  Target Milestone: ---

g++-10.0.0-alpha20191103 snapshot (r277758) ICEs when compiling the following
testcase reduced from test/Lexer/conflict-marker.c from the clang 9.0.0 test
suite:

<<<<<<<>>>>>>>

% g++-10.0.0-alpha20191103 -w -c ljle4xta.cc
ljle4xta.cc:1:1: error: version control conflict marker in file
    1 | <<<<<<<>>>>>>>
      | ^~~~~~~
ljle4xta.cc:1:14: internal compiler error: in cp_lexer_consume_token, at
cp/parser.c:1118
    1 | <<<<<<<>>>>>>>
      |              ^
0x61e516 cp_lexer_consume_token
       
/var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191103/work/gcc-10-20191103/gcc/cp/parser.c:1118
0x8d83bd cp_parser_error_1
       
/var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191103/work/gcc-10-20191103/gcc/cp/parser.c:2895
0x8fe299 cp_parser_error
       
/var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191103/work/gcc-10-20191103/gcc/cp/parser.c:2960
0x8fe299 cp_parser_error
       
/var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191103/work/gcc-10-20191103/gcc/cp/parser.c:2957
0x8fe299 cp_parser_unqualified_id
       
/var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191103/work/gcc-10-20191103/gcc/cp/parser.c:6248
0x8f6b43 cp_parser_declarator_id
       
/var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191103/work/gcc-10-20191103/gcc/cp/parser.c:21970
0x8f6b43 cp_parser_direct_declarator
       
/var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191103/work/gcc-10-20191103/gcc/cp/parser.c:21204
0x8f6b43 cp_parser_declarator
       
/var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191103/work/gcc-10-20191103/gcc/cp/parser.c:20855
0x9096d4 cp_parser_init_declarator
       
/var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191103/work/gcc-10-20191103/gcc/cp/parser.c:20363
0x8edd6c cp_parser_simple_declaration
       
/var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191103/work/gcc-10-20191103/gcc/cp/parser.c:13618
0x913eb0 cp_parser_declaration
       
/var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191103/work/gcc-10-20191103/gcc/cp/parser.c:13316
0x9143c5 cp_parser_translation_unit
       
/var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191103/work/gcc-10-20191103/gcc/cp/parser.c:4715
0x9143c5 c_parse_file()
       
/var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191103/work/gcc-10-20191103/gcc/cp/parser.c:42867
0xa15e55 c_common_parse_file()
       
/var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191103/work/gcc-10-20191103/gcc/c-family/c-opts.c:1179

Reply via email to