https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101534
Bug ID: 101534 Summary: ICE in create_tailcall_accumulator, at tree-tailcall.c:1083 Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: gs...@t-online.de Target Milestone: --- Affects versions down to at least r5, at -O2+ : $ cat z1.c typedef int V __attribute__ ((vector_size (2 * sizeof (int)))); V foo (void) { V v = { }; return v - foo(); } $ gcc-12-20210718 -c z1.c -O1 $ $ gcc-12-20210718 -c z1.c -O2 during GIMPLE pass: tailr z1.c: In function 'foo': z1.c:7:1: internal compiler error: in fold_convert_loc, at fold-const.c:2542 7 | } | ^ 0xa3ce55 fold_convert_loc(unsigned int, tree_node*, tree_node*) ../../gcc/fold-const.c:2542 0x106c4fd create_tailcall_accumulator ../../gcc/tree-tailcall.c:1083 0x106ef5e tree_optimize_tail_calls_1 ../../gcc/tree-tailcall.c:1166