https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115847
Bug ID: 115847 Summary: ICE: tree check: expected none of vector_type, have vector_type in element_precision, at tree.cc:6808 with attribute simd Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: iamanonymous.cs at gmail dot com Target Milestone: --- ******************************************************************************* OS and Platform: $ uname -a: Linux 65dac7c84719 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux ******************************************************************************* gcc version: Using built-in specs. COLLECT_GCC=/home/software/gcc-trunk-3aa004f/bin/gcc COLLECT_LTO_WRAPPER=/home/software/gcc-trunk-3aa004f/libexec/gcc/x86_64-pc-linux-gnu/15.0.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: ../gcc/configure --disable-multilib --disable-bootstrap --enable-languages=c,c++ --prefix=/home/software/gcc-trunk-3aa004f --enable-coverage Thread model: posix Supported LTO compression algorithms: zlib gcc version 15.0.0 20240630 (experimental) (GCC) ******************************************************************************* Program: $ cat mutant.c __attribute__((simd)) __attribute__((__vector_size__(sizeof(char)))) char a() {} ******************************************************************************* Command Lines: $ gcc mutant.c during RTL pass: expand mutant.c: In function 'a.simdclone.0': mutant.c:1:75: internal compiler error: tree check: expected none of vector_type, have vector_type in element_precision, at tree.cc:6808 1 | __attribute__((simd)) __attribute__((__vector_size__(sizeof(char)))) char a() {} | ^ 0x5071bcf diagnostic_context::report_diagnostic(diagnostic_info*) ???:0 0x50724a1 diagnostic_context::diagnostic_impl(rich_location*, diagnostic_metadata const*, int, char const*, __va_list_tag (*) [1], diagnostic_t) ???:0 0x50924c7 internal_error(char const*, ...) ???:0 0x2685609 tree_not_check_failed(tree_node const*, char const*, int, char const*, ...) ???:0 0xfa6926 tree_not_check(tree_node const*, char const*, int, char const*, tree_code) ???:0 0x2676bc8 element_precision(tree_node const*) ???:0 0x14fd1e7 operand_compare::operand_equal_p(tree_node const*, tree_node const*, unsigned int) ???:0 0x150776d operand_compare::verify_hash_value(tree_node const*, tree_node const*, unsigned int, bool*) ???:0 0x14fc7d6 operand_compare::operand_equal_p(tree_node const*, tree_node const*, unsigned int) ???:0 0x1507978 operand_equal_p(tree_node const*, tree_node const*, unsigned int) ???:0 0x1483c48 expand_assignment(tree_node*, tree_node*, bool) ???:0 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. Also ICE on trunk. Compiler Explorer: https://godbolt.org/z/bPbxsqaq7