[Bug c/95378] __atomic_load will write to objects of cv-qualified types

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Jun 16 20:12:59 GMT 2020


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

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
GCC correctly refuses to write through const pointers for
__atomic_test_and_set, __atomic_clear, and all of __atomic_fetch_op and
__atomic_op_fetch.


More information about the Gcc-bugs mailing list