This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/71189] ICE with VLA with second dimension from a function call expression


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71189

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
   Last reconfirmed|                            |2016-5-18
                 CC|                            |msebor at gcc dot gnu.org
         Resolution|---                         |DUPLICATE
      Known to fail|                            |4.9.0, 5.3.0, 6.1.0, 7.0

--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
Confirmed as a duplicate of bug 58646, even though current trunk (7.0) doesn't
crash on this test case, it does on the slightly modified one below:

$ echo "int f() { int f[2][f()] = {}; }" | /build/gcc-trunk-svn/gcc/xgcc -B
/build/gcc-trunk-svn/gcc -S -Wall -Wextra -Wpedantic -xc++ -
<stdin>: In function âint f()â:
<stdin>:1:23: warning: ISO C++ forbids variable length array âfâ [-Wvla]
<stdin>:1:15: warning: unused variable âfâ [-Wunused-variable]
<stdin>:1:31: warning: no return statement in function returning non-void
[-Wreturn-type]
<stdin>:1:15: internal compiler error: in make_decl_rtl, at varasm.c:1299
0x143c037 make_decl_rtl(tree_node*)
        /src/gcc-svn/gcc/varasm.c:1295
0xcc72ad expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
        /src/gcc-svn/gcc/expr.c:9479
0xcc04a6 expand_expr_real(tree_node*, rtx_def*, machine_mode, expand_modifier,
rtx_def**, bool)
        /src/gcc-svn/gcc/expr.c:7829
0xca85f4 expand_expr
        /src/gcc-svn/gcc/expr.h:272
0xccf433 expr_size(tree_node*)
        /src/gcc-svn/gcc/expr.c:11499
0xcc0163 expand_constructor
        /src/gcc-svn/gcc/expr.c:7696
0xcc86e4 expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
        /src/gcc-svn/gcc/expr.c:9745
0xcc04a6 expand_expr_real(tree_node*, rtx_def*, machine_mode, expand_modifier,
rtx_def**, bool)
        /src/gcc-svn/gcc/expr.c:7829
0xcb75a4 store_expr_with_bounds(tree_node*, rtx_def*, int, bool, bool,
tree_node*)
        /src/gcc-svn/gcc/expr.c:5276
0xcb81a3 store_expr(tree_node*, rtx_def*, int, bool, bool)
        /src/gcc-svn/gcc/expr.c:5463
0xcbc849 store_field
        /src/gcc-svn/gcc/expr.c:6675
0xcb57ad expand_assignment(tree_node*, tree_node*, bool)
        /src/gcc-svn/gcc/expr.c:4893
0xb6f5b1 expand_gimple_stmt_1
        /src/gcc-svn/gcc/cfgexpand.c:3618
0xb6f99c expand_gimple_stmt
        /src/gcc-svn/gcc/cfgexpand.c:3714
0xb76a69 expand_gimple_basic_block
        /src/gcc-svn/gcc/cfgexpand.c:5720
0xb7853b execute
        /src/gcc-svn/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.
tmp$

*** This bug has been marked as a duplicate of bug 58646 ***

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]