On 01/14/2016 02:19 PM, Ryan Burn wrote:
This patch adds a missing cleanup point to cilk_spawn expressions to
prevent an ICE when calling functions that return types with
non-trivial destructors.

Bootstrapped and regression tested on x86_64-linux.

2015-01-14 Ryan Burn  <cont...@rnburn.com>

      PR c++/69048
        * cilk.c (create_cilk_wrapper_body): Call
fold_build_cleanup_point_expr to add missing cleanup point.

        * gcc/testsuite/g++.dg/cilk-plus/CK/pr69048.cc: New test
I thought something was horribly wrong for a few minutes. STMT inside cilk_create_wrapper_body is a tree, not a gimple statement. So my worries were unfounded :-)

OK for the trunk.
jeff

Reply via email to