https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107994
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: gs...@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 == v; int v; } $ cat z2.c typedef V __attribute__ ((__vector_size__ (32))); int g; V foo (V v) { g == 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:2606 5 | g == 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