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

            Bug ID: 45373
           Summary: std::shuffle freeze up
           Product: libc++
           Version: unspecified
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: release blocker
          Priority: P
         Component: All Bugs
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]

Created attachment 23297
  --> https://bugs.llvm.org/attachment.cgi?id=23297&action=edit
C++ source file showcasing the problem.

Using std::shuffle with a generator that yields the same value for all calls
causes std::shuffle to freeze up. I attached a C++ source file showcasing the
problem.

Replicates on:
Apple clang version 11.0.0 (clang-1100.0.33.12)
Target: x86_64-apple-darwin19.3.0
Thread model: posix

Replication:
clang++ -o bug.exe -std=c++17 bug.cpp && ./bug.exe

The application will freeze when trying to shuffle the elements.
The application will no longer freeze if the 17th element is removed from
samples.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to