Bug 58907 - [c++11] ICE in gimplify_var_or_parm_decl, at gimplify.c:NNNN
Summary: [c++11] ICE in gimplify_var_or_parm_decl, at gimplify.c:NNNN
Status: RESOLVED DUPLICATE of bug 62272
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: unknown
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: c++-lambda
Depends on:
Blocks: lambdas
  Show dependency treegraph
 
Reported: 2013-10-28 16:59 UTC by Paul Pluzhnikov
Modified: 2024-01-26 00:53 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2013-11-18 00:00:00


Attachments
test case (860 bytes, text/x-c++src)
2013-10-28 16:59 UTC, Paul Pluzhnikov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Pluzhnikov 2013-10-28 16:59:47 UTC
Created attachment 31100 [details]
test case

Google ref: b/11241398

Attached test cases causes ICE in lambda:
g++ (GCC) 4.9.0 20131016 (experimental)


/g++ -c -std=c++11 t.cc
t.cc: In lambda function:
t.cc:96:9: internal compiler error: in gimplify_var_or_parm_decl, at gimplify.c:2059
         [&]
         ^
0x9657f0 gimplify_var_or_parm_decl
        ../../gcc/gimplify.c:2059
0x96821e gimplify_expr(tree_node**, gimple_statement_d**, gimple_statement_d**, bool (*)(tree_node*), int)
        ../../gcc/gimplify.c:8113
0x973748 gimplify_modify_expr
        ../../gcc/gimplify.c:4786
0x967ebc gimplify_expr(tree_node**, gimple_statement_d**, gimple_statement_d**, bool (*)(tree_node*), int)
        ../../gcc/gimplify.c:7693
0x96c3f6 gimplify_stmt(tree_node**, gimple_statement_d**)
        ../../gcc/gimplify.c:5627
0x96c5c5 gimplify_and_add
        ../../gcc/gimplify.c:344
0x96c5c5 gimplify_init_ctor_eval
        ../../gcc/gimplify.c:3818
0x971b04 gimplify_init_constructor
        ../../gcc/gimplify.c:4164
0x9729ae gimplify_modify_expr_rhs
        ../../gcc/gimplify.c:4427
0x9735d4 gimplify_modify_expr
        ../../gcc/gimplify.c:4745
0x967ebc gimplify_expr(tree_node**, gimple_statement_d**, gimple_statement_d**, bool (*)(tree_node*), int)
        ../../gcc/gimplify.c:7693
0x97d3c0 gimplify_target_expr
        ../../gcc/gimplify.c:5558
0x967ed6 gimplify_expr(tree_node**, gimple_statement_d**, gimple_statement_d**, bool (*)(tree_node*), int)
        ../../gcc/gimplify.c:8049
0x96c3f6 gimplify_stmt(tree_node**, gimple_statement_d**)
        ../../gcc/gimplify.c:5627
0x968d59 gimplify_cleanup_point_expr
        ../../gcc/gimplify.c:5403
0x968d59 gimplify_expr(tree_node**, gimple_statement_d**, gimple_statement_d**, bool (*)(tree_node*), int)
        ../../gcc/gimplify.c:8045
0x96c3f6 gimplify_stmt(tree_node**, gimple_statement_d**)
        ../../gcc/gimplify.c:5627
0x96936b gimplify_statement_list
        ../../gcc/gimplify.c:1538
0x96936b gimplify_expr(tree_node**, gimple_statement_d**, gimple_statement_d**, bool (*)(tree_node*), int)
        ../../gcc/gimplify.c:8097
0x96c3f6 gimplify_stmt(tree_node**, gimple_statement_d**)
        ../../gcc/gimplify.c:5627
Please submit a full bug report,

Same error in gcc-4_8 branch.
Comment 1 Paul Pluzhnikov 2013-10-28 17:11:30 UTC
For some reason "make" didn't update the version stamp.
make clean && make

Same problem with current trunk:
g++ (GCC) 4.9.0 20131028 (experimental)
Comment 2 Markus Trippelsdorf 2015-08-17 06:24:59 UTC
dup.

*** This bug has been marked as a duplicate of bug 62272 ***
Comment 3 Markus Trippelsdorf 2015-08-17 19:18:54 UTC
Actually a dup of 67244, so fixed, too.

*** This bug has been marked as a duplicate of bug 67244 ***
Comment 4 Markus Trippelsdorf 2015-08-17 19:29:38 UTC
Sorry for the noise. It is a dup of PR62272 after all.

Fixed for gcc-5 and gcc-6 by r226950 and r226951.

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