From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C8DAC383FD57; Tue, 6 Dec 2022 18:03:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C8DAC383FD57 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1670349788; bh=UhkfkWQvtUOqvZ+zIOSdnTfqA7rM1qF9flRM3JOVTuA=; h=From:To:Subject:Date:From; b=W8k8Q34GEaL2yJvjOqjqB+QTAo1DJEH7XtQ3yGeBH1BclX0usXKnTnIlGFjqI9Cnm xO4q54fCxs3u7HVGpdL2uUVpvww+zXS8cESQyaUx4USMW0R1n0LGFOcS+x3YmNbIz1 rUa/r2fAYJ70Ke0nDDORaq+kbEMrLsxu+21Lr1L0= From: "gscfq@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/107993] New: ICE: tree check: expected string_cst, have integer_cst in get_target_clone_attr_len, at tree.cc:14872 Date: Tue, 06 Dec 2022 18:03:08 +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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D107993 Bug ID: 107993 Summary: ICE: tree check: expected string_cst, have integer_cst in get_target_clone_attr_len, at tree.cc:14872 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 r6 : (gcc configured with --enable-checking=3Dyes) $ cat z1.c typedef union {} u; __attribute__((target_clones("arch=3Dalderlake",!"default"))) int f (u *x) {} $ gcc-13-20221204 -c z1.c z1.c:3:1: internal compiler error: tree check: expected string_cst, have integer_cst in get_target_clone_attr_len, at tree.cc:14872 3 | int f (u *x) {} | ^~~ 0x6b3c56 tree_check_failed(tree_node const*, char const*, int, char const*, ...) ../../gcc/tree.cc:8822 0x121b83e tree_check(tree_node*, char const*, int, char const*, tree_code) ../../gcc/tree.h:3528 0x121b83e get_target_clone_attr_len(tree_node*) ../../gcc/tree.cc:14872 0x8fbf87 handle_target_clones_attribute ../../gcc/c-family/c-attribs.cc:5594 0x7b4a87 decl_attributes(tree_node**, tree_node*, int, tree_node*) ../../gcc/attribs.cc:878 0x7db93d start_function(c_declspecs*, c_declarator*, tree_node*) ../../gcc/c/c-decl.cc:10089 0x852e8e c_parser_declaration_or_fndef ../../gcc/c/c-parser.cc:2751 0x85e30f c_parser_external_declaration ../../gcc/c/c-parser.cc:1925 0x85ec4d c_parser_translation_unit ../../gcc/c/c-parser.cc:1779 0x85ec4d c_parse_file() ../../gcc/c/c-parser.cc:24596 0x8d85e1 c_common_parse_file() ../../gcc/c-family/c-opts.cc:1248=