https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58646
Martin Sebor <msebor at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed|2013-10-07 00:00:00 |2016-3-6 CC| |msebor at gcc dot gnu.org Known to fail| |5.3.0, 6.0 --- Comment #3 from Martin Sebor <msebor at gcc dot gnu.org> --- Still crashes with the top of trunk (6.0) as well as 5.3. $ cat z.cpp && /build/gcc-trunk/gcc/xgcc -B /build/gcc-trunk/gcc -Wall -Wextra -Wpedantic z.cpp void bar (int n) { char a [2][n] = { }; } z.cpp: In function ‘void bar(int)’: z.cpp:3:15: warning: ISO C++ forbids variable length array ‘a’ [-Wvla] char a [2][n] = { }; ^ z.cpp:3:8: warning: unused variable ‘a’ [-Wunused-variable] char a [2][n] = { }; ^ z.cpp:3:21: internal compiler error: in make_decl_rtl, at varasm.c:1299 char a [2][n] = { }; ^ 0x1449b13 make_decl_rtl(tree_node*) /src/gcc/trunk/gcc/varasm.c:1295 0xcd7cb5 expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) /src/gcc/trunk/gcc/expr.c:9612 0xcd0ead expand_expr_real(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) /src/gcc/trunk/gcc/expr.c:7962 0xcb8d57 expand_expr /src/gcc/trunk/gcc/expr.h:256 0xcdfdc2 expr_size(tree_node*) /src/gcc/trunk/gcc/expr.c:11633 0xcd0b99 expand_constructor /src/gcc/trunk/gcc/expr.c:7829 0xcd9123 expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) /src/gcc/trunk/gcc/expr.c:9879 0xcd0ead expand_expr_real(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) /src/gcc/trunk/gcc/expr.c:7962 0xcc8175 store_expr_with_bounds(tree_node*, rtx_def*, int, bool, bool, tree_node*) /src/gcc/trunk/gcc/expr.c:5406 0xcc8d79 store_expr(tree_node*, rtx_def*, int, bool, bool) /src/gcc/trunk/gcc/expr.c:5596 0xccd436 store_field /src/gcc/trunk/gcc/expr.c:6808 0xcc6247 expand_assignment(tree_node*, tree_node*, bool) /src/gcc/trunk/gcc/expr.c:5021 0xb8120c expand_gimple_stmt_1 /src/gcc/trunk/gcc/cfgexpand.c:3618 0xb815fd expand_gimple_stmt /src/gcc/trunk/gcc/cfgexpand.c:3714 0xb8870e expand_gimple_basic_block /src/gcc/trunk/gcc/cfgexpand.c:5720 0xb8a1d7 execute /src/gcc/trunk/gcc/cfgexpand.c:6335 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <http://gcc.gnu.org/bugs.html> for instructions.