From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0BE0E385735A; Tue, 5 Jul 2022 18:47:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0BE0E385735A From: "gscfq@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/106207] New: [11/12/13 Regression] ICE in apply_fixit, at edit-context.cc:769 Date: Tue, 05 Jul 2022 18:47:28 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gscfq@t-online.de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jul 2022 18:47:29 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D106207 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: gscfq@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=3D0 -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-initializ= e 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=