LWG-3047 `atomic` compound assignment operators can cause undefined behavior when corresponding `fetch_meow` members don't

Open
#6,561 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Active
Tech stack
cpp
Domain
backend

Research direction

Start by examining the C++ standard issue LWG-3047 and the library's atomic compound assignment operators alongside their corresponding fetch_ members. Determine whether the standard requires a code change; the issue gives no files, tests, or concrete change, so completion depends on resolving that question.

Written by the indexing model from the issue text.

Description

LWG

LWG-3047 atomic compound assignment operators can cause undefined behavior when corresponding fetch_meow members don't

As far as I can tell, there's nothing for us to do here, but as this isn't obviously a slam dunk N/A, I'm going to file a GitHub issue and ask for a second opinion.

Dominant language
C++
Stars
11.2k
Forks
1.7k
Avg merge
4d 4h
Merged PRs (30d)
14

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/STL

All issues in microsoft/STL

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.