re PR middle-end/37356 (ICE in gsi_insert_seq_nodes_after, at gimple-iterator.c:222)
PR middle-end/37356 * tree-inline.c (copy_bb): Insert stmt into copy_basic_block before calling gimple_regimplify_operands on it. Iterate over all newly added statements, not just the last one. (insert_init_stmt): Insert stmt into seq first, then call gimple_regimplify_operands on it. Don't create new gimplification context, nor find referenced vars. * g++.dg/tree-ssa/pr37356.C: New test. Co-Authored-By: Jan Hubicka <jh@suse.cz> From-SVN: r140177
Showing
gcc/testsuite/g++.dg/tree-ssa/pr37356.C
0 → 100644
Please
register
or
sign in
to comment