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

            Bug ID: 79785
           Summary: ICE in gimplify_expr, at gimplify.c:11950
           Product: gcc
           Version: 7.0.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gerhard.steinmetz.fort...@t-online.de
  Target Milestone: ---

With testfile ./g++.dg/ext/int128-3.C
down to version 4.9 :


$ gcc-7-20170226 -c int128-3.C
$ gcc-7-20170226 -m32 -c int128-3.C
int128-3.C:7:3: error: overflow in enumeration values at 'e2'
   e2, e3
   ^~
int128-3.C:12:27: error: expected primary-expression before '__int128'
 SA(1, sizeof(E) == sizeof(__int128));
                           ^
int128-3.C:10:27: note: in definition of macro 'SA'
 #define SA(I,X) int a##I[(X)? 1 : -1]
                           ^
int128-3.C:12:27: error: expected ')' before '__int128'
 SA(1, sizeof(E) == sizeof(__int128));
                           ^
int128-3.C:10:27: note: in definition of macro 'SA'
 #define SA(I,X) int a##I[(X)? 1 : -1]
                           ^
int128-3.C:12:37: error: expected ')' before ';' token
 SA(1, sizeof(E) == sizeof(__int128));
                                     ^
int128-3.C:12:37: error: expected ']' before ';' token
int128-3.C: In function 'void __static_initialization_and_destruction_0(int,
int)':
int128-3.C:8:3: internal compiler error: in gimplify_expr, at gimplify.c:11950
 } e = e3;
   ^
0xb7b2fa gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ../../gcc/gimplify.c:11950
0xb8723f gimplify_modify_expr
        ../../gcc/gimplify.c:5457
0xb79a7d gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ../../gcc/gimplify.c:11192
0xb7d226 gimplify_stmt(tree_node**, gimple**)
        ../../gcc/gimplify.c:6478
0xb79d21 gimplify_cleanup_point_expr
        ../../gcc/gimplify.c:6230
0xb79d21 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ../../gcc/gimplify.c:11567
0xb7d226 gimplify_stmt(tree_node**, gimple**)
        ../../gcc/gimplify.c:6478
0xb785e3 gimplify_statement_list
        ../../gcc/gimplify.c:1716
0xb785e3 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ../../gcc/gimplify.c:11619
0xb7d226 gimplify_stmt(tree_node**, gimple**)
        ../../gcc/gimplify.c:6478
0xb83249 gimplify_cond_expr
        ../../gcc/gimplify.c:3971
0xb79ab4 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ../../gcc/gimplify.c:11148
0xb7d226 gimplify_stmt(tree_node**, gimple**)
        ../../gcc/gimplify.c:6478
0xb83249 gimplify_cond_expr
        ../../gcc/gimplify.c:3971
0xb79ab4 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ../../gcc/gimplify.c:11148
0xb7d226 gimplify_stmt(tree_node**, gimple**)
        ../../gcc/gimplify.c:6478
0xb808e9 gimplify_body(tree_node*, bool)
        ../../gcc/gimplify.c:12388
0xb80f84 gimplify_function_tree(tree_node*)
        ../../gcc/gimplify.c:12546
0x9e6fe7 cgraph_node::analyze()
        ../../gcc/cgraphunit.c:657
0x9ea753 analyze_functions
        ../../gcc/cgraphunit.c:1118

Reply via email to