diff options
author | Ryan Burn <contact@rnburn.com> | 2016-04-27 20:41:52 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 2016-04-27 14:41:52 -0600 |
commit | 6bc2bb1821cc65ff6e463cb1fc930c5d152fe04d (patch) | |
tree | 01aff7302afade8fb5843d89091bb1813cde6002 /gcc/cp/lambda.c | |
parent | 85a7c9263c2554811e9fc0e1ce7bec3b3bf6b7f5 (diff) | |
download | gcc-6bc2bb1821cc65ff6e463cb1fc930c5d152fe04d.zip gcc-6bc2bb1821cc65ff6e463cb1fc930c5d152fe04d.tar.gz gcc-6bc2bb1821cc65ff6e463cb1fc930c5d152fe04d.tar.bz2 |
re PR c++/69024 ([cilkpus] cilk_spawn is broken for initializations with implicit conversion operators defined)
PR c++/69024
PR c++/68997
* cilk.c (cilk_ignorable_spawn_rhs_op): Change to external linkage.
(cilk_recognize_spawn): Renamed from recognize_spawn and change to
external linkage.
(cilk_detect_and_unwrap): Corresponding changes.
(extract_free_variables): Don't extract free variables from
AGGR_INIT_EXPR slot.
* c-common.h (cilk_ignorable_spawn_rhs_op): Prototype.
(cilk_recognize_spawn): Likewise.
PR c++/69024
PR c++/68997
* cp-gimplify.c (cp_gimplify_expr): Call cilk_cp_detect_spawn_and_unwrap
instead of cilk_detect_spawn_and_unwrap.
* cp-cilkplus.c (is_conversion_operator_function_decl_p): New.
(find_spawn): New.
(cilk_cp_detect_spawn_and_unwrap): New.
* lambda.c: Include cp-cilkplus.h.
* parser.c: Include cp-cilkplus.h.
* cp-tree.h (cpp_validate_cilk_plus_loop): Move prototype into...
* cp-cilkpus.h: New file.
PR c++/69024
PR c++/68997
* g++.dg/cilk-plus/CK/pr68001.cc: Fix to not depend on broken
diagnostic.
* g++.dg/cilk-plus/CK/pr69024.cc: New test.
* g++.dg/cilk-plus/CK/pr68997.cc: New test.
Co-Authored-By: Jeff Law <law@redhat.com>
From-SVN: r235534
Diffstat (limited to 'gcc/cp/lambda.c')
-rw-r--r-- | gcc/cp/lambda.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/cp/lambda.c b/gcc/cp/lambda.c index 374a78b..08d6d82 100644 --- a/gcc/cp/lambda.c +++ b/gcc/cp/lambda.c @@ -30,6 +30,7 @@ along with GCC; see the file COPYING3. If not see #include "tree-iterator.h" #include "toplev.h" #include "gimplify.h" +#include "cp-cilkplus.h" /* Constructor for a lambda expression. */ |