[Bug c++/69024] New: [cilkpus] cilk_spawn is broken for initializations with implicit conversion operators defined
ryan.burn at gmail dot com
gcc-bugzilla@gcc.gnu.org
Wed Dec 23 00:06:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69024
Bug ID: 69024
Summary: [cilkpus] cilk_spawn is broken for initializations
with implicit conversion operators defined
Product: gcc
Version: 6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: ryan.burn at gmail dot com
Target Milestone: ---
The following code should compile but gives this error:
implicit_cast.cpp: In function ‘void g()’:
implicit_cast.cpp:12:28: error: invalid use of ‘_Cilk_spawn’
double x = _Cilk_spawn f();
/////////////////////////////////////////////////////////////////
struct A {
operator double() {
return 33.0;
}
};
A f() {
return {};
}
void g() {
double x = _Cilk_spawn f();
}
int main() {
g();
return 0;
}
/////////////////////////////////////////////////////////////////
More information about the Gcc-bugs
mailing list