https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119992
Bug ID: 119992 Summary: internal compiler error: in gimplify_expr, at gimplify.cc:19860 Product: gcc Version: 16.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: xieym3 at zohomail dot com Target Milestone: --- $ cat file.c int main(int argc, char **argv) { int d[] = {2, 4, 5, 3, 8, 6, 7, 8, 8}; void* p; int count = 0; int e[count + 1]; for (int i = 0; i<(count + 1); i++) { e[i] = *(d + i); } int count[8]; for (int i=0; i<8; i++) { count[i] = 0; } return 0; } $ gcc-trunk -v Using built-in specs. COLLECT_GCC=/data/xieym/compiler/install/gcc-trunk/bin/gcc COLLECT_LTO_WRAPPER=/data/xieym/compiler/install/gcc-trunk/libexec/gcc/x86_64-pc-linux-gnu/16.0.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /data/xieym/compiler/src/gcc/configure --enable-coverage --enable-checking --disable-multilib --disable-shared --disable-bootstrap --enable-languages=c,c++ --prefix=/data/xieym/compiler/install/gcc-trunk Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 16.0.0 20250428 (experimental) (GCC) $ gcc-trunk -std=c2x file.c -o /dev/null <source>:6:22: internal compiler error: in gimplify_expr, at gimplify.cc:19860 6 | for (int i = 0; i<(count + 1); i++) { | ~^~~~~~~~~~~~ 0x2ea0055 diagnostic_context::diagnostic_impl(rich_location*, diagnostic_metadata const*, diagnostic_option_id, char const*, __va_list_tag (*) [1], diagnostic_t) ???:0 0x2eb7026 internal_error(char const*, ...) ???:0 0xf56f88 fancy_abort(char const*, int, char const*) ???:0 0x13707f2 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) ???:0 0x13728e2 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) ???:0 0x13745da gimplify_stmt(tree_node**, gimple**) ???:0 0x1371933 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) ???:0 0x13745da gimplify_stmt(tree_node**, gimple**) ???:0 0x1371933 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) ???:0 0x13745da gimplify_stmt(tree_node**, gimple**) ???:0 0x13720da gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) ???:0 0x13745da gimplify_stmt(tree_node**, gimple**) ???:0 0x1371933 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) ???:0 0x13745da gimplify_stmt(tree_node**, gimple**) ???:0 0x13720da gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) ???:0 0x13745da gimplify_stmt(tree_node**, gimple**) ???:0 0x1371933 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) ???:0 0x137a926 gimplify_body(tree_node*, bool) ???:0 0x137adec gimplify_function_tree(tree_node*) ???:0 0x117bec7 cgraph_node::analyze() ???: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. Compiler returned: 1 Godbolt url: https://godbolt.org/z/qT5MbzG44