[Webkit-unassigned] [Bug 235445] New: Build failure with g++ 12: std::exchange undefined

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jan 21 09:29:15 PST 2022


https://bugs.webkit.org/show_bug.cgi?id=235445

            Bug ID: 235445
           Summary: Build failure with g++ 12: std::exchange undefined
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKitGTK
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: mgorse at suse.com
                CC: bugs-noreply at webkitgtk.org

We are trying to get openSUSE ready for the upcoming gcc 12 release. Building with the development version gives me a few errors like this:
/home/abuild/rpmbuild/BUILD/webkitgtk-2.34.3/Source/WTF/wtf/CompletionHandler.h:67:21: error: 'exchange' is not a member of 'std'
67 |         return std::exchange(m_function, nullptr)(std::forward<In>(in)...);

I'm not sure why this fails on 12 but not 11, but including <utility> fixes the build for me.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220121/224142ff/attachment.htm>


More information about the webkit-unassigned mailing list