[Bug middle-end/60586] [Cilk+] Parameters evaluation happens inside spawn worker
arch.robison at hotmail dot com
gcc-bugzilla@gcc.gnu.org
Tue Aug 11 20:45:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60586
Arch D. Robison <arch.robison at hotmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |arch.robison at hotmail dot com
--- Comment #1 from Arch D. Robison <arch.robison at hotmail dot com> ---
Created attachment 36171
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36171&action=edit
Another demonstration of the bug
Unpack and run "make" to build and run it. Requires routine "usleep" from
<unistid.h>. When compiled correctly, it should run without comment.
Otherwise, as with gcc 5.2.0, it will report errors. E.g., here is a sample
session:
$ make
g++ -O0 -std=c++11 -fcilkplus harness.cpp -c
g++ -O0 -std=c++11 -fcilkplus test.cpp -c
g++ -O0 -std=c++11 -fcilkplus harness.o test.o
./a.out
ERROR: f.val=3, should be 2
ERROR: f.val=6, should be 3
make: *** [all] Aborted
More information about the Gcc-bugs
mailing list