[LLVMbugs] [Bug 16207] New: cannot perform | on std::launch

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jun 3 06:31:15 PDT 2013


            Bug ID: 16207
           Summary: cannot perform | on std::launch
           Product: libc++
           Version: unspecified
          Hardware: Macintosh
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: hhinnant at apple.com
          Reporter: akim.demaille at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

The following piece of code does not run, although it is my understanding in
c++11 that this be a valid argument for std::async.

$ cat launch.cc
#include <future>

int main()
  auto l = std::launch::async | std::launch::deferred;
$ clang++-mp-3.3 -std=c++11 -stdlib=libc++ launch.cc
launch.cc:5:31: error: invalid operands to binary expression
('std::__1::launch' and
  auto l = std::launch::async | std::launch::deferred;
           ~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~
1 error generated.

BTW, it would be nice to have a valid class enum name here (std::launch)
instead of std::__1::launch.

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/20130603/9e3587c9/attachment.html>

More information about the llvm-bugs mailing list