https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117197
Bug ID: 117197 Summary: ICE: 'verify_gimple' failed with vector_size 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 struct b { __attribute__((vector_size(4))) int a; }; int c; void d() { struct b e = {c, .a = 2}; } ******************************************************************************* Command Lines: $ gcc mutant.c mutant.c: In function 'd': mutant.c:5:6: error: incorrect number of vector 'constructor' elements 5 | void d() { struct b e = {c, .a = 2}; } | ^ {c.0_1, 2} _2 = {c.0_1, 2}; mutant.c:5:6: internal compiler error: 'verify_gimple' failed 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 0x1f8b6ad verify_gimple_in_seq(gimple*, bool) ???:0 0x17310df gimplify_body(tree_node*, bool) ???:0 0x17319cc gimplify_function_tree(tree_node*) ???:0 0x124b024 cgraph_node::analyze() ???:0 0x125521b symbol_table::finalize_compilation_unit() ???: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. It can be compiled normally without vector_size attribute. Clang does not encounter crash. Also ICE on trunk. Compiler Explorer: https://godbolt.org/z/WsrdrqWhY