[Bug c++/78591] New: [c++1z] ICE when using decomposition identifier from closure object
lucdanton at free dot fr
gcc-bugzilla@gcc.gnu.org
Tue Nov 29 18:34:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78591
Bug ID: 78591
Summary: [c++1z] ICE when using decomposition identifier from
closure object
Product: gcc
Version: 7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: lucdanton at free dot fr
Target Milestone: ---
I'm not entirely sure is the ice-on-invalid tag is warranted here.
$ g++-trunk -std=c++1z main.cpp
main.cpp: In function 'int main()':
main.cpp:5:12: internal compiler error: Segmentation fault
return insides;
^~~~~~~
0xb6cebf crash_signal
../../gcc/gcc/toplev.c:333
0x8e996d expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
../../gcc/gcc/expr.c:10108
0x8f4470 store_expr_with_bounds(tree_node*, rtx_def*, int, bool, bool,
tree_node*)
../../gcc/gcc/expr.c:5551
0x8f535f expand_assignment(tree_node*, tree_node*, bool)
../../gcc/gcc/expr.c:5320
0x808dbe expand_gimple_stmt_1
../../gcc/gcc/cfgexpand.c:3641
0x808dbe expand_gimple_stmt
../../gcc/gcc/cfgexpand.c:3737
0x80aa30 expand_gimple_basic_block
../../gcc/gcc/cfgexpand.c:5744
0x80f746 execute
../../gcc/gcc/cfgexpand.c:6358
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.
The program:
//----------
int main()
{
int i = 0;
auto [insides] = [&i] {};
return insides;
}
More information about the Gcc-bugs
mailing list