From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 62B543857C71; Mon, 23 Nov 2020 16:41:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 62B543857C71 From: "gscfq@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/97957] New: ICE in init_dynamic_diag_info, at c-family/c-format.c:5024 Date: Mon, 23 Nov 2020 16:41:35 +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: 11.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: Mon, 23 Nov 2020 16:41:35 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D97957 Bug ID: 97957 Summary: ICE in init_dynamic_diag_info, at c-family/c-format.c:5024 Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: gscfq@t-online.de Target Milestone: --- A doubled line affects versions down to at least r5 : $ cat z1.c typedef long __gcc_host_wide_int__; typedef long __gcc_host_wide_int__; __attribute__ ((__format__ (__gcc_diag__, 1, 2))) void f () {} $ gcc-11-20201122 -c z1.c z1.c:4:1: internal compiler error: in init_dynamic_diag_info, at c-family/c-format.c:5024 4 | void f () {} | ^~~~ 0x6d1b97 init_dynamic_diag_info ../../gcc/c-family/c-format.c:5024 0x6d1b97 handle_format_attribute(tree_node**, tree_node*, tree_node*, int, bool*) ../../gcc/c-family/c-format.c:5252 0x62a101 decl_attributes(tree_node**, tree_node*, int, tree_node*) ../../gcc/attribs.c:724 0x641eef start_function(c_declspecs*, c_declarator*, tree_node*) ../../gcc/c/c-decl.c:9410 0x689236 c_parser_declaration_or_fndef ../../gcc/c/c-parser.c:2444 0x690a47 c_parser_external_declaration ../../gcc/c/c-parser.c:1777 0x691569 c_parser_translation_unit ../../gcc/c/c-parser.c:1650 0x691569 c_parse_file() ../../gcc/c/c-parser.c:21882 0x6e0772 c_common_parse_file() ../../gcc/c-family/c-opts.c:1198=