This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/60586] [Cilk+] Parameters evaluation happens inside spawn worker


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]