mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:17:35 +00:00
Everywhere: Work around Clang trunk bug with templated lambda + Variant
Since 2023-09-08, Clang trunk has had a bug which causes a segfault when evaluating certain `requires` expressions inside templated lambdas. There isn't an imminent fix on the horizon, so let's work around the issue by specifying the type of the offending lambda arguments explicitly. See https://github.com/llvm/llvm-project/issues/67260
This commit is contained in:
parent
6c29fc07fc
commit
6f972c190b
3 changed files with 3 additions and 3 deletions
|
@ -77,7 +77,7 @@ static ErrorOr<JsonObject, Error> validate_capabilities(JsonValue const& capabil
|
|||
JsonObject result;
|
||||
|
||||
// 3. For each enumerable own property in capability, run the following substeps:
|
||||
TRY(capability.as_object().try_for_each_member([&](auto const& name, auto const& value) -> ErrorOr<void, Error> {
|
||||
TRY(capability.as_object().try_for_each_member([&](auto const& name, JsonValue const& value) -> ErrorOr<void, Error> {
|
||||
// a. Let name be the name of the property.
|
||||
// b. Let value be the result of getting a property named name from capability.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue