[llvm-bugs] [Bug 43201] New: std::atomic<FloatingPoint> missing operator+= and operator-=

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Sep 2 20:03:51 PDT 2019


https://bugs.llvm.org/show_bug.cgi?id=43201

            Bug ID: 43201
           Summary: std::atomic<FloatingPoint> missing operator+= and
                    operator-=
           Product: libc++
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: All Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: david at doublewise.net
                CC: llvm-bugs at lists.llvm.org, mclow.lists at gmail.com

The following code fails to compile, complaining about no matching overload:

#include <atomic>

void f() {
    std::atomic<double> a;
    a += 1.0;
}

-- 
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/20190903/063cb34a/attachment.html>


More information about the llvm-bugs mailing list