http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57541

            Bug ID: 57541
           Summary: [Cilkplus]: internal compiler error: in gimplify_expr,
                    at gimplify.c:7809
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: anna.m.tikhonova at gmail dot com

Created attachment 30266
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30266&action=edit
Reproducer

Hi,
Attached test case fails with ICE:

$ gcc -fcilkplus 1.c
1.c: In function 'main':
1.c:4:18: error: 'N' undeclared (first use in this function)
   char c = (char)N;
                  ^
1.c:4:18: note: each undeclared identifier is reported only once for each
function it appears in
1.c:7:3: internal compiler error: in gimplify_expr, at gimplify.c:7809
   A[l:s:c];
   ^
0x78dacf gimplify_expr(tree_node**, gimple_statement_d**, gimple_statement_d**,
bool (*)(tree_node*), int)
        /home/anna/trunk/gcc/gimplify.c:7809
0x78f5f6 gimplify_stmt(tree_node**, gimple_statement_d**)
        /home/anna/trunk/gcc/gimplify.c:5692
0x78b8bb gimplify_statement_list
        /home/anna/trunk/gcc/gimplify.c:1521
0x78b8bb gimplify_expr(tree_node**, gimple_statement_d**, gimple_statement_d**,
bool (*)(tree_node*), int)
        /home/anna/trunk/gcc/gimplify.c:7549
0x78f5f6 gimplify_stmt(tree_node**, gimple_statement_d**)
        /home/anna/trunk/gcc/gimplify.c:5692
0x790c81 gimplify_body(tree_node*, bool)
        /home/anna/trunk/gcc/gimplify.c:8193
0x791136 gimplify_function_tree(tree_node*)
        /home/anna/trunk/gcc/gimplify.c:8325
0x6282ef analyze_function
        /home/anna/trunk/gcc/cgraphunit.c:629
0x62b2e4 analyze_functions
        /home/anna/trunk/gcc/cgraphunit.c:913
0x62c795 finalize_compilation_unit()
        /home/anna/trunk/gcc/cgraphunit.c:2097
0x509ee3 c_write_global_declarations()
        /home/anna/trunk/gcc/c/c-decl.c:10118
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