From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E6559383FD5E; Tue, 6 Dec 2022 18:04:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E6559383FD5E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1670349864; bh=l/IARn0VsHa70pqWxfU9QjJEmuIjF907UrINsz0Ey+8=; h=From:To:Subject:Date:From; b=n7p2EhNaOWbxUYJ7ODqIYsF8tpTLoaFrweJ0NkDsvcriPbhRsYemqzSXj9FazhVZI r1wsxoUGRZjJi9OyarKjAs27FyjJSTm/RfpMDiiJAIem1YLzllzFT8Opv/9Jei6KFP jFNuhqp9+5s7awXnatwDVXWLlPMFxQFCB5iNku7U= From: "gscfq@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/107994] New: [12/13 Regression] ICE in fold_convert_loc, at fold-const.cc:2606 Date: Tue, 06 Dec 2022 18:04:24 +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=3D107994 Bug ID: 107994 Summary: [12/13 Regression] ICE in fold_convert_loc, at fold-const.cc:2606 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: --- Changed between 20210822 and 20210905 : $ cat z1.c typedef V __attribute__ ((__vector_size__ (32))); int g; void foo (V v) { g =3D=3D v; int v; } $ cat z2.c typedef V __attribute__ ((__vector_size__ (32))); int g; V foo (V v) { g =3D=3D v; int v; } $ gcc-13-20221204 -c z1.c z1.c:1:9: warning: type defaults to 'int' in declaration of 'V' [-Wimplicit-int] 1 | typedef V __attribute__ ((__vector_size__ (32))); | ^ z1.c: In function 'foo': z1.c:6:7: error: 'v' redeclared as different kind of symbol 6 | int v; | ^ z1.c:3:13: note: previous definition of 'v' with type 'V' {aka '__vector(8) int'} 3 | void foo (V v) | ~~^ z1.c:5:5: internal compiler error: in fold_convert_loc, at fold-const.cc:26= 06 5 | g =3D=3D v; | ~~^~~~ 0xafb891 fold_convert_loc(unsigned int, tree_node*, tree_node*) ../../gcc/fold-const.cc:2606 0xb9ebd7 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*= ), int) ../../gcc/gimplify.cc:17113 0xb9dca2 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*= ), int) ../../gcc/gimplify.cc:17153 0xba1ff8 gimplify_stmt(tree_node**, gimple**) ../../gcc/gimplify.cc:7219 0xb9d41b gimplify_statement_list ../../gcc/gimplify.cc:2019 0xb9d41b gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*= ), int) ../../gcc/gimplify.cc:16805 0xba1ff8 gimplify_stmt(tree_node**, gimple**) ../../gcc/gimplify.cc:7219 0xba2912 gimplify_bind_expr ../../gcc/gimplify.cc:1430 0xb9d92a gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*= ), int) ../../gcc/gimplify.cc:16561 0xba1ff8 gimplify_stmt(tree_node**, gimple**) ../../gcc/gimplify.cc:7219 0xba399e gimplify_body(tree_node*, bool) ../../gcc/gimplify.cc:17620 0xba3f95 gimplify_function_tree(tree_node*) ../../gcc/gimplify.cc:17819 0x9bdab7 cgraph_node::analyze() ../../gcc/cgraphunit.cc:676 0x9c0de6 analyze_functions ../../gcc/cgraphunit.cc:1240 0x9c1f5d symbol_table::finalize_compilation_unit() ../../gcc/cgraphunit.cc:2514=