WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
310786
WTF::holdsAlternative<Variant<Ts...>>: Index-based overload uses nonexistent API
https://bugs.webkit.org/show_bug.cgi?id=310786
Summary
WTF::holdsAlternative<Variant<Ts...>>: Index-based overload uses nonexistent API
Chris Dumez
Reported
2026-03-26 00:44:07 PDT
std::holds_alternative<T> only takes a type parameter. There is no std::holds_alternative<size_t I> overload in the standard. This would fail to compile if instantiated.
Attachments
Add attachment
proposed patch, testcase, etc.
Chris Dumez
Comment 1
2026-03-26 00:45:20 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/61392
EWS
Comment 2
2026-03-26 15:27:24 PDT
Committed
310029@main
(ab0c60065686): <
https://commits.webkit.org/310029@main
> Reviewed commits have been landed. Closing PR #61392 and removing active labels.
Radar WebKit Bug Importer
Comment 3
2026-03-26 15:28:13 PDT
<
rdar://problem/173446202
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug