FreeBSD Bugzilla – Attachment 239651 Details for
Bug 269110
lang/gcc12: std::for_each() SEGVs
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
testcase.cpp
par.cpp (text/plain), 445 bytes, created by
Yuri Victorovich
on 2023-01-23 08:53:00 UTC
(
hide
)
Description:
testcase.cpp
Filename:
MIME Type:
Creator:
Yuri Victorovich
Created:
2023-01-23 08:53:00 UTC
Size:
445 bytes
patch
obsolete
> > >#include <execution> >#include <vector> >#include <iostream> > >#include <chrono> >#include <thread> > > >int main() { > std::vector<std::string> foo = {"a", "b", "c", "d", "e", "f", "g"}; > > std::for_each( > std::execution::par, > foo.begin(), > foo.end(), > [](auto&& item) { > std::cout << ">>> item=" << item << std::endl; > std::this_thread::sleep_for(std::chrono::milliseconds(1000)); > std::cout << "<<< item=" << item << std::endl; > } > ); >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 269110
: 239651