[Bug fortran/102698] omp atomic capture Abnormal results after running multiple times

han.wu@compiler-dev.com gcc-bugzilla@gcc.gnu.org
Tue Oct 12 12:03:40 GMT 2021


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102698

--- Comment #4 from han.wu <han.wu@compiler-dev.com> ---
Thank you very much for your prompt reply!
@Jakub Jelinek
One thing I don't quite understand is that if we modify the test case as
suggested as the extra note, then the value of temp_v may vary at each
execution, then what is the occasion to use an atomic capture structure with 2
statements? Could you please give me an example of a practical usage of it?


More information about the Gcc-bugs mailing list