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

            Bug ID: 70851
           Summary: internal compiler error: in create_tmp_var, at
                    gimple-expr.c:473
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mpolacek at gcc dot gnu.org
  Target Milestone: ---

enum E e;

void
foo (void)
{
  int a[e];
}

$ ./cc1 -quiet q.c
q.c:1:8: error: storage size of ‘e’ isn’t known
 enum E e;
        ^
q.c: In function ‘foo’:
q.c:6:3: internal compiler error: in create_tmp_var, at gimple-expr.c:473
   int a[e];
   ^~~
0xacc7a2 create_tmp_var(tree_node*, char const*)
        /home/marek/src/gcc/gcc/gimple-expr.c:473
0xaf6efc create_tmp_from_val
        /home/marek/src/gcc/gcc/gimplify.c:498
0xaf7006 lookup_tmp_var
        /home/marek/src/gcc/gcc/gimplify.c:519
0xaf71ee internal_get_tmp_var
        /home/marek/src/gcc/gcc/gimplify.c:563
0xaf73f6 get_initialized_tmp_var(tree_node*, gimple**, gimple**)
        /home/marek/src/gcc/gcc/gimplify.c:600
0xb0739c gimplify_save_expr
        /home/marek/src/gcc/gcc/gimplify.c:4997
0xb20961 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        /home/marek/src/gcc/gcc/gimplify.c:10575
0xb09cfd gimplify_stmt(tree_node**, gimple**)
        /home/marek/src/gcc/gcc/gimplify.c:5688
0xafa38b gimplify_statement_list
        /home/marek/src/gcc/gcc/gimplify.c:1537
0xb2135d gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        /home/marek/src/gcc/gcc/gimplify.c:10704
0xb09cfd gimplify_stmt(tree_node**, gimple**)
        /home/marek/src/gcc/gcc/gimplify.c:5688
0xaf8cf5 gimplify_bind_expr
        /home/marek/src/gcc/gcc/gimplify.c:1142
0xb204a6 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        /home/marek/src/gcc/gcc/gimplify.c:10486
0xb09cfd gimplify_stmt(tree_node**, gimple**)
        /home/marek/src/gcc/gcc/gimplify.c:5688
0xb23973 gimplify_body(tree_node*, bool)
        /home/marek/src/gcc/gcc/gimplify.c:11433
0xb2420f gimplify_function_tree(tree_node*)
        /home/marek/src/gcc/gcc/gimplify.c:11589
0x92cc55 cgraph_node::analyze()
        /home/marek/src/gcc/gcc/cgraphunit.c:625
0x92e4dc analyze_functions
        /home/marek/src/gcc/gcc/cgraphunit.c:1086
0x932ae8 symbol_table::finalize_compilation_unit()
        /home/marek/src/gcc/gcc/cgraphunit.c:2542
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.

Reply via email to