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