From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6BFF23853815; Mon, 17 May 2021 19:21:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6BFF23853815 From: "gscfq@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/100643] New: [11/12 Regression] ICE in ix86_mangle_function_version_assembler_name, at config/i386/i386-features.c:2809 Date: Mon, 17 May 2021 19:21:03 +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: 12.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, 17 May 2021 19:21:03 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D100643 Bug ID: 100643 Summary: [11/12 Regression] ICE in ix86_mangle_function_version_assembler_name, at config/i386/i386-features.c:2809 Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gscfq@t-online.de Target Milestone: --- Changed between 20210314 and 20210328 : $ cat z1.cc int foo() { int foo() __attribute__((target("avx"))); int foo() __attribute__((target("default"))); } $ g++-12-20210516 -c z1.cc z1.cc: In function 'int foo()': z1.cc:3:10: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse] 3 | int foo() __attribute__((target("avx"))); | ^~ z1.cc:3:10: note: remove parentheses to default-initialize a variable 3 | int foo() __attribute__((target("avx"))); | ^~ | -- z1.cc:3:10: note: or replace parentheses with braces to value-initialize a variable z1.cc:4:10: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse] 4 | int foo() __attribute__((target("default"))); | ^~ z1.cc:4:10: note: remove parentheses to default-initialize a variable 4 | int foo() __attribute__((target("default"))); | ^~ | -- z1.cc:4:10: note: or replace parentheses with braces to value-initialize a variable z1.cc:5:1: warning: no return statement in function returning non-void [-Wreturn-type] 5 | } | ^ z1.cc: At global scope: z1.cc:5:1: internal compiler error: in ix86_mangle_function_version_assembler_name, at config/i386/i386-features.c:2809 0x107d5bb ix86_mangle_function_version_assembler_name ../../gcc/config/i386/i386-features.c:2809 0x107d5bb ix86_mangle_decl_assembler_name(tree_node*, tree_node*) ../../gcc/config/i386/i386-features.c:2839 0x719887 get_mangled_id ../../gcc/cp/mangle.c:4041 0x719887 mangle_decl(tree_node*) ../../gcc/cp/mangle.c:4078 0xf57cc2 decl_assembler_name(tree_node*) ../../gcc/tree.c:708 0xf9a8be notice_global_symbol(tree_node*) ../../gcc/varasm.c:1801 0x91d505 cgraph_node::finalize_function(tree_node*, bool) ../../gcc/cgraphunit.c:453 0x7ed17f expand_or_defer_fn(tree_node*) ../../gcc/cp/semantics.c:4682 0x7a1c59 cp_parser_function_definition_after_declarator ../../gcc/cp/parser.c:30121 0x7a2afc cp_parser_function_definition_from_specifiers_and_declarator ../../gcc/cp/parser.c:30024 0x7a2afc cp_parser_init_declarator ../../gcc/cp/parser.c:21677 0x782f5a cp_parser_simple_declaration ../../gcc/cp/parser.c:14464 0x7a7395 cp_parser_declaration ../../gcc/cp/parser.c:14161 0x7a68cb cp_parser_translation_unit ../../gcc/cp/parser.c:4942 0x7a68cb c_parse_file() ../../gcc/cp/parser.c:45393 0x8753f2 c_common_parse_file() ../../gcc/c-family/c-opts.c:1218=