Skip to content
Snippets Groups Projects
Commit 6bc2bb18 authored by Ryan Burn's avatar Ryan Burn Committed by Jeff Law
Browse files

re PR c++/69024 ([cilkpus] cilk_spawn is broken for initializations with...

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: default avatarJeff Law <law@redhat.com>

From-SVN: r235534
parent 85a7c926
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment