Bug 119062 - [C++26] P3475R2 - Defang and deprecate memory_order::consume
Summary: [C++26] P3475R2 - Defang and deprecate memory_order::consume
Status: NEW
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 15.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: c++26
Depends on:
Blocks: c++26-core 115882
  Show dependency treegraph
 
Reported: 2025-02-28 14:55 UTC by Jakub Jelinek
Modified: 2025-03-19 15:36 UTC (History)
4 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2025-02-28 00:00:00


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jakub Jelinek 2025-02-28 14:55:27 UTC
See <https://wg21.link/P3475R2>.
Comment 1 Jonathan Wakely 2025-02-28 16:23:45 UTC
There's a small library part to this (adding [[deprecated]] to the enumerator).
Comment 2 Jason Merrill 2025-03-19 15:36:46 UTC
I don't think there's anything needed in the compiler, get_memmodel already treats consume as acquire.  I suppose we could remove a few remaining mentions of consume.