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: unassignedclangb...@nondot.org
Reporter: ilya.bury...@intel.com
CC: llvm-bugs@lists.llvm.org, mclow.li...@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs