[Bug c++/61678] New: internal compiler error: in expand_expr_real_1, at expr.c:9467

larsbj at gullik dot net gcc-bugzilla@gcc.gnu.org
Wed Jul 2 22:32:00 GMT 2014


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

            Bug ID: 61678
           Summary: internal compiler error: in expand_expr_real_1, at
                    expr.c:9467
           Product: gcc
           Version: 4.10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: larsbj at gullik dot net

$ cat main.ii
struct Test {
    Test();
};

Test::Test()
{
    int w = 512;
    unsigned rgb_ref[1][w];
}


Gives this error:

$ /opt/gcc/gcc-trunk/bin/g++ -c main.ii
main.ii: In constructor ‘Test::Test()’:
main.ii:8:26: internal compiler error: in expand_expr_real_1, at expr.c:9467
     unsigned rgb_ref[1][w];
                          ^
0x77961b expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
        ../../gcc/gcc/expr.c:9462
0x7825e5 expand_expr
        ../../gcc/gcc/expr.h:451
0x7825e5 expand_expr_real_2(separate_ops*, rtx_def*, machine_mode,
expand_modifier)
        ../../gcc/gcc/expr.c:8151
0x6c542e expand_gimple_stmt_1
        ../../gcc/gcc/cfgexpand.c:3294
0x6c542e expand_gimple_stmt
        ../../gcc/gcc/cfgexpand.c:3354
0x6c656a expand_gimple_basic_block
        ../../gcc/gcc/cfgexpand.c:5192
0x6c8166 execute
        ../../gcc/gcc/cfgexpand.c:5799


This is with $ /opt/gcc/gcc-trunk/bin/g++ --version
g++ (GCC) 4.10.0 20140702 (experimental)


More information about the Gcc-bugs mailing list