https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91038
Bug ID: 91038 Summary: internal compiler error: in gimplify_var_or_parm_decl, at gimplify.c:2786 Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: uecker at eecs dot berkeley.edu Target Milestone: --- Created attachment 46536 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46536&action=edit reduced test case This happens with older versions (test 6.3.0) but also on very recent versions: lbm_broken.c: In function ‘zouhe_left’: lbm_broken.c:17:51: internal compiler error: in gimplify_var_or_parm_decl, at gimplify.c:2786 17 | (*({ struct lbm __x = D2Q9; ((const int(*)[9][__x.D])__x.DQ); }))[1][0]; | ~~~^~ 0x61ace0 gimplify_var_or_parm_decl ../../gcc/gcc/gimplify.c:2786 0xacc50f gimplify_compound_lval ../../gcc/gcc/gimplify.c:2906 0xac5710 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) ../../gcc/gcc/gimplify.c:12677 0xacbb20 internal_get_tmp_var ../../gcc/gcc/gimplify.c:609 0xac6696 get_initialized_tmp_var(tree_node*, gimple**, gimple**, bool) ../../gcc/gcc/gimplify.c:663 0xac6696 gimplify_save_expr ../../gcc/gcc/gimplify.c:6013 0xac6696 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) ../../gcc/gcc/gimplify.c:13025 0xac5f54 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) ../../gcc/gcc/gimplify.c:12828 0xac5ba9 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) ../../gcc/gcc/gimplify.c:13465 0xac5ba9 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) ../../gcc/gcc/gimplify.c:13465 0xacc646 gimplify_compound_lval ../../gcc/gcc/gimplify.c:3007 0xac5710 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) ../../gcc/gcc/gimplify.c:12677 0xac9706 gimplify_stmt(tree_node**, gimple**) ../../gcc/gcc/gimplify.c:6754 0xaca46e gimplify_bind_expr ../../gcc/gcc/gimplify.c:1395 0xac6882 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) ../../gcc/gcc/gimplify.c:12926 0xac9706 gimplify_stmt(tree_node**, gimple**) ../../gcc/gcc/gimplify.c:6754 0xacb19b gimplify_body(tree_node*, bool) ../../gcc/gcc/gimplify.c:13944 0xacb577 gimplify_function_tree(tree_node*) ../../gcc/gcc/gimplify.c:14088 0x939b87 cgraph_node::analyze() ../../gcc/gcc/cgraphunit.c:667 0x93c910 analyze_functions ../../gcc/gcc/cgraphunit.c:1126 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions.