Hello, Thanks a lot for Cilk++! I just wanted to report something that seems like a bug. Consider this:
#include
#include
double *values() {
double *v = (double *)malloc(10 * sizeof(double));
cilk_for(int i=0; i < 10; i++)
v[i] = 0.123 * i;
return v;
}
int cilk_main() {
double *v = values();
printf("%gn", v[1]);
}
This program works in serial semantics (-fcilk-stub). However, the normal semantics gives a segmentation fault. My version iscilk++ (GCC) 4.2.4 (Cilk Arts build 8503). Best regards, Bruno

