https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106207
Bug ID: 106207 Summary: [11/12/13 Regression] ICE in apply_fixit, at edit-context.cc:769 Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: gs...@t-online.de Target Milestone: --- Started with r11 between 20201018 and 20201108, and file gcc.dg/tree-ssa/pr77644.c : $ g++-13-20220703 -c pr77644.c -ftrack-macro-expansion=0 -fdiagnostics-generate-patch pr77644.c: In function 'int f_f1(float, float)': pr77644.c:22:1: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse] 22 | GEN_FOO(float, f) | ^~~~~~~ pr77644.c:22:1: note: remove parentheses to default-initialize a variable 22 | GEN_FOO(float, f) | ^~~~~~~ | ------- pr77644.c:22:1: note: or replace parentheses with braces to value-initialize a variable pr77644.c: In function 'int f_f2(float, float)': pr77644.c:22:1: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse] pr77644.c:22:1: note: remove parentheses to default-initialize a variable 22 | GEN_FOO(float, f) | ^~~~~~~ | ------- pr77644.c:22:1: internal compiler error: in apply_fixit, at edit-context.cc:769 0x1b6c4f0 edited_line::apply_fixit(int, int, char const*, int) ../../gcc/edit-context.cc:769 0x1b6d306 edit_context::add_fixits(rich_location*) ../../gcc/edit-context.cc:232 0x1b60344 diagnostic_report_diagnostic(diagnostic_context*, diagnostic_info*) ../../gcc/diagnostic.cc:1580 0x1b6069a diagnostic_impl ../../gcc/diagnostic.cc:1712 0x1b61f89 inform(rich_location*, char const*, ...) ../../gcc/diagnostic.cc:1804 0x7ddf27 warn_about_ambiguous_parse ../../gcc/cp/parser.cc:22338 0x81e50a cp_parser_init_declarator ../../gcc/cp/parser.cc:22618 0x7fbb82 cp_parser_simple_declaration ../../gcc/cp/parser.cc:15336 0x7fd429 cp_parser_declaration_statement ../../gcc/cp/parser.cc:14417 0x7fda0b cp_parser_statement ../../gcc/cp/parser.cc:12494 0x7fe9d4 cp_parser_statement_seq_opt ../../gcc/cp/parser.cc:12906 0x7fea8f cp_parser_compound_statement ../../gcc/cp/parser.cc:12858 0x81d5e8 cp_parser_function_body ../../gcc/cp/parser.cc:25205 0x81d5e8 cp_parser_ctor_initializer_opt_and_function_body ../../gcc/cp/parser.cc:25256 0x81daa6 cp_parser_function_definition_after_declarator ../../gcc/cp/parser.cc:31404 0x81ec29 cp_parser_function_definition_from_specifiers_and_declarator ../../gcc/cp/parser.cc:31321 0x81ec29 cp_parser_init_declarator ../../gcc/cp/parser.cc:22658 0x7fbb82 cp_parser_simple_declaration ../../gcc/cp/parser.cc:15336 0x824958 cp_parser_declaration ../../gcc/cp/parser.cc:15022 0x825232 cp_parser_translation_unit ../../gcc/cp/parser.cc:5018