[Bug c/69104] invalid atomic memory order not diagnosed
mpolacek at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jan 4 13:47:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69104
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2016-01-04
CC| |mpolacek at gcc dot gnu.org
Target Milestone|--- |6.0
Ever confirmed|0 |1
--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Confirmed; this is 7.17.7 in C11.
I think this relates to atomic_compare_exchange as well:
"The failure argument shall not be memory_order_release nor
memory_order_acq_rel. The failure argument shall be no stronger than the
success argument."
We don't diagnose these either it seems.
More information about the Gcc-bugs
mailing list