https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93730
Martin Sebor <msebor at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |ice-on-invalid-code Status|NEW |RESOLVED Resolution|--- |DUPLICATE Summary|[9/10 Regression] ICE in |[8/9/10 Regression] ICE in |make_decl_rtl, at |make_decl_rtl, at |varasm.c:1375 |varasm.c:1375 --- Comment #5 from Martin Sebor <msebor at gcc dot gnu.org> --- Stack trace is below. Bisecting a test case with the initializer changed to the equivalent '{ }' points to r198746 as the first revision when GCC failed with an ICE. Prior to that, GCC rejected the code with: pr93730.C: error: variable-sized object ‘DefaultGammaTable’ may not be initialized int DefaultGammaTable[3][Seed] = {{0,},}; ^ pr93730.C:4:15: warning: unused variable ‘DefaultGammaTable’ [-Wunused-variable] 4 | unsigned int DefaultGammaTable[3][Seed] = {{0,},}; | ^~~~~~~~~~~~~~~~~ during RTL pass: expand pr93730.C:4:15: internal compiler error: in make_decl_rtl, at varasm.c:1346 4 | unsigned int DefaultGammaTable[3][Seed] = {{0,},}; | ^~~~~~~~~~~~~~~~~ 0x1af7fce make_decl_rtl(tree_node*) /src/gcc/trunk/gcc/varasm.c:1342 0x103cc40 expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) /src/gcc/trunk/gcc/expr.c:10085 0x10349d2 expand_expr_real(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) /src/gcc/trunk/gcc/expr.c:8353 0x10122a3 expand_expr /src/gcc/trunk/gcc/expr.h:282 0x104995c expr_size(tree_node*) /src/gcc/trunk/gcc/expr.c:12652 0x1034657 expand_constructor /src/gcc/trunk/gcc/expr.c:8219 0x103e351 expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) /src/gcc/trunk/gcc/expr.c:10383 0x10349d2 expand_expr_real(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) /src/gcc/trunk/gcc/expr.c:8353 0x10297d6 store_expr(tree_node*, rtx_def*, int, bool, bool) /src/gcc/trunk/gcc/expr.c:5747 0x10303b1 store_field /src/gcc/trunk/gcc/expr.c:7219 0x1027162 expand_assignment(tree_node*, tree_node*, bool) /src/gcc/trunk/gcc/expr.c:5369 0xe5abf4 expand_gimple_stmt_1 /src/gcc/trunk/gcc/cfgexpand.c:3749 0xe5b00e expand_gimple_stmt /src/gcc/trunk/gcc/cfgexpand.c:3847 0xe6378b expand_gimple_basic_block /src/gcc/trunk/gcc/cfgexpand.c:5887 0xe656c2 execute /src/gcc/trunk/gcc/cfgexpand.c:6542 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. *** This bug has been marked as a duplicate of bug 58646 ***