https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112622
Bug ID: 112622 Summary: [14 Regression] ICE: tree check: expected none of vector_type, have vector_type in convert_to_real_1, at convert.cc:295 with invalid cast Product: gcc Version: 14.0 Status: UNCONFIRMED Keywords: ice-on-invalid-code Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: zsojka at seznam dot cz Target Milestone: --- Host: x86_64-pc-linux-gnu Target: x86_64-pc-linux-gnu Created attachment 56642 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56642&action=edit reduced testcase Compiler output: $ x86_64-pc-linux-gnu-gcc testcase.c testcase.c:3:1: internal compiler error: tree check: expected none of vector_type, have vector_type in convert_to_real_1, at convert.cc:295 3 | V v = (float)-v; | ^ 0x8825f8 tree_not_check_failed(tree_node const*, char const*, int, char const*, ...) /repo/gcc-trunk/gcc/tree.cc:8989 0x72f82a tree_not_check(tree_node*, char const*, int, char const*, tree_code) /repo/gcc-trunk/gcc/tree.h:3611 0x72f82a convert_to_real_1 /repo/gcc-trunk/gcc/convert.cc:295 0xe2a8fc c_convert /repo/gcc-trunk/gcc/c/c-convert.cc:175 0xe13c8b build_c_cast(unsigned int, tree_node*, tree_node*) /repo/gcc-trunk/gcc/c/c-typeck.cc:6098 0xe14c82 c_cast_expr(unsigned int, c_type_name*, tree_node*) /repo/gcc-trunk/gcc/c/c-typeck.cc:6172 0xe3d624 c_parser_cast_expression /repo/gcc-trunk/gcc/c/c-parser.cc:9677 0xe3d7af c_parser_binary_expression /repo/gcc-trunk/gcc/c/c-parser.cc:9454 0xe3ec1b c_parser_conditional_expression /repo/gcc-trunk/gcc/c/c-parser.cc:9152 0xe3f3e4 c_parser_expr_no_commas /repo/gcc-trunk/gcc/c/c-parser.cc:9066 0xe4636c c_parser_initializer /repo/gcc-trunk/gcc/c/c-parser.cc:6099 0xe4636c c_parser_initializer /repo/gcc-trunk/gcc/c/c-parser.cc:6091 0xe5f0cb c_parser_declaration_or_fndef /repo/gcc-trunk/gcc/c/c-parser.cc:2727 0xe69a6b c_parser_external_declaration /repo/gcc-trunk/gcc/c/c-parser.cc:2046 0xe6a453 c_parser_translation_unit /repo/gcc-trunk/gcc/c/c-parser.cc:1900 0xe6a453 c_parse_file() /repo/gcc-trunk/gcc/c/c-parser.cc:26392 0xedc5c1 c_common_parse_file() /repo/gcc-trunk/gcc/c-family/c-opts.cc:1295 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions. $ x86_64-pc-linux-gnu-gcc -v Using built-in specs. COLLECT_GCC=/repo/gcc-trunk/binary-latest-amd64/bin/x86_64-pc-linux-gnu-gcc COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-r14-5593-20231119062640-g78d132d73ec-checking-yes-rtl-df-extra-nobootstrap-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/14.0.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /repo/gcc-trunk//configure --enable-languages=c,c++ --enable-valgrind-annotations --disable-nls --enable-checking=yes,rtl,df,extra --disable-bootstrap --with-cloog --with-ppl --with-isl --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --target=x86_64-pc-linux-gnu --with-ld=/usr/bin/x86_64-pc-linux-gnu-ld --with-as=/usr/bin/x86_64-pc-linux-gnu-as --disable-libstdcxx-pch --prefix=/repo/gcc-trunk//binary-trunk-r14-5593-20231119062640-g78d132d73ec-checking-yes-rtl-df-extra-nobootstrap-amd64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 14.0.0 20231119 (experimental) (GCC)