[Webkit-unassigned] [Bug 247226] New: [MSVC] constexpr-if statement in ArgumentCoders.h causes compilation errors
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sat Oct 29 04:21:47 PDT 2022
https://bugs.webkit.org/show_bug.cgi?id=247226
Bug ID: 247226
Summary: [MSVC] constexpr-if statement in ArgumentCoders.h
causes compilation errors
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: zan at falconsigh.net
CC: dkolesa at igalia.com
After 255496 at main a compilation issue was reported on MSVC++:
> something.cpp(whatever-line-is-end-of-file): fatal error C1024: unexpected end-of-file found
Daniel narrowed this down to the listed change, and also narrowed down the problem to the constexpr-if introduced in the patch:
> if constexpr (Index < sizeof...(Elements)) { ...
What reportedly does work as intended is moving the calculation of the condition into a separate constexpr variable:
> constexpr bool Recurse = (Index < sizeof...(Elements));
:shrug:
--
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/20221029/165a1dc8/attachment.htm>
More information about the webkit-unassigned
mailing list