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

            Bug ID: 70639
           Summary: internal compiler error: in guard_tinfo_to_string, at
                    c-family/c-indentation.c:560
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mpolacek at gcc dot gnu.org
  Target Milestone: ---

$ cat e.C
void bar (int);

void
foo (int x)
{
  if (x > 0)
    switch (x);
      bar (x);
}

$ ./cc1plus -quiet  e.C -Wall
e.C: In function ‘void foo(int)’:
e.C:7:15: internal compiler error: in guard_tinfo_to_string, at
c-family/c-indentation.c:560
     switch (x);
               ^
0x98d787 guard_tinfo_to_string
        /home/marek/src/gcc/gcc/c-family/c-indentation.c:560
0x98db65 warn_for_misleading_indentation(token_indent_info const&,
token_indent_info const&, token_indent_info const&)
        /home/marek/src/gcc/gcc/c-family/c-indentation.c:605
0x830373 cp_parser_implicitly_scoped_statement
        /home/marek/src/gcc/gcc/cp/parser.c:11928
0x82932c cp_parser_selection_statement
        /home/marek/src/gcc/gcc/cp/parser.c:10982
0x82932c cp_parser_statement
        /home/marek/src/gcc/gcc/cp/parser.c:10389
0x83033e cp_parser_implicitly_scoped_statement
        /home/marek/src/gcc/gcc/cp/parser.c:11921
0x829812 cp_parser_selection_statement
        /home/marek/src/gcc/gcc/cp/parser.c:10888
0x829812 cp_parser_statement
        /home/marek/src/gcc/gcc/cp/parser.c:10389
0x829e4c cp_parser_statement_seq_opt
        /home/marek/src/gcc/gcc/cp/parser.c:10806
0x829f5f cp_parser_compound_statement
        /home/marek/src/gcc/gcc/cp/parser.c:10760
0x82a130 cp_parser_function_body
        /home/marek/src/gcc/gcc/cp/parser.c:20653
0x82a130 cp_parser_ctor_initializer_opt_and_function_body
        /home/marek/src/gcc/gcc/cp/parser.c:20689
0x82abf1 cp_parser_function_definition_after_declarator
        /home/marek/src/gcc/gcc/cp/parser.c:25351
0x82b8b4 cp_parser_function_definition_from_specifiers_and_declarator
        /home/marek/src/gcc/gcc/cp/parser.c:25263
0x82b8b4 cp_parser_init_declarator
        /home/marek/src/gcc/gcc/cp/parser.c:18429
0x82bb70 cp_parser_simple_declaration
        /home/marek/src/gcc/gcc/cp/parser.c:12379
0x82be6a cp_parser_block_declaration
        /home/marek/src/gcc/gcc/cp/parser.c:12248
0x835680 cp_parser_declaration
        /home/marek/src/gcc/gcc/cp/parser.c:12145
0x833f16 cp_parser_declaration_seq_opt
        /home/marek/src/gcc/gcc/cp/parser.c:12024
0x83422c cp_parser_translation_unit
        /home/marek/src/gcc/gcc/cp/parser.c:4323
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.

Reply via email to