[Webkit-unassigned] [Bug 277902] New: [GCC] Add custom implementation of std::bit_cast for systems not supporting it
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sat Aug 10 01:55:11 PDT 2024
https://bugs.webkit.org/show_bug.cgi?id=277902
Bug ID: 277902
Summary: [GCC] Add custom implementation of std::bit_cast for
systems not supporting it
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: New Bugs
Assignee: webkit-unassigned at lists.webkit.org
Reporter: dpino at igalia.com
Changeset 281895 at main introduced a non-conditional use of `std::bit_cast`. This broke the build for many Linux systems lacking support for this function.
https://build.webkit.org/#/builders/992/builds/4591/steps/9/logs/stdio
```
/home/buildbot/worker/GTK-Linux-64-bit-Release-Debian-11-Build/build/Source/WTF/wtf/Float16.h:59:36: error: no member named 'bit_cast' in namespace 'std'
return static_cast<float>(std::bit_cast<_Float16>(h));
```
`std::bit_cast` is implemented since libstdc++-11, so Linux systems still using libstdc++-10 are affected by this build break. Switching the compiler to clang doesn't solve this issue since the version of libstdc++ distributed in the OS is still used (in fact, Debian 11 bot is already using clang).
--
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/20240810/7a3c4078/attachment.htm>
More information about the webkit-unassigned
mailing list