[LLVMbugs] [Bug 23041] New: shared_lock bad test case

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Mar 26 22:41:12 PDT 2015


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

            Bug ID: 23041
           Summary: shared_lock bad test case
           Product: libc++
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: terrelln at umich.edu
                CC: llvmbugs at cs.uiuc.edu, mclow.lists at gmail.com
    Classification: Unclassified

Occurs in line 25 of
`/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.cons/mutex_adopt_lock.pass.cpp`:

The adopt_lock constructor assumes that the lock is already held in shared
mode, but it is held in exclusive mode.

`m.lock_shared()` should be called, not `m.lock()`.

-- 
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/20150327/474cde39/attachment.html>


More information about the llvm-bugs mailing list