[llvm-bugs] [Bug 41784] New: volatile copy assignment operator for std::atomic
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue May 7 01:50:44 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=41784
Bug ID: 41784
Summary: volatile copy assignment operator for std::atomic
Product: libc++
Version: 8.0
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: ilya.burylov at intel.com
CC: llvm-bugs at lists.llvm.org, mclow.lists at gmail.com
The code snippet below is compiled.
#include <atomic>
int main()
{
volatile std::atomic<int> a1;
std::atomic<int> a2;
a1 = a2;
}
But shouldn't because copy assignment operator marked as deleted (atomic&
operator=( const atomic& ) volatile = delete) by the C++ standard.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190507/a9020bda/attachment-0001.html>
More information about the llvm-bugs
mailing list