https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108974
Bug ID: 108974 Summary: std::barrier except completion function which is not manifestly noexcept Product: gcc Version: 12.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: oliver.rosten at googlemail dot com Target Milestone: --- std::barrier<std::function<void()>> b{1, [](){}}; is accepted by gcc (and clang). However, it fails on MSVC - as I think it should - since std::function's call operator isn't manifestly noexcept. https://godbolt.org/z/7vfoa1qhn