Bug 276601
| Summary: | Regression(275398) "error: lambda without a parameter clause is a C++23 extension" | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Gerald Squelart <g_squelart> |
| Component: | Web Template Framework | Assignee: | Gerald Squelart <g_squelart> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Bug Depends on: | 275398 | ||
| Bug Blocks: | |||
Gerald Squelart
Since bug 275398 I'm getting a few of these errors:
```
/Volumes/WebKit/OpenSource/WebKitBuild/Release/usr/local/include/wtf/HashTable.h:480:115: error: lambda without a parameter clause is a C++23 extension [-Werror,-Wc++23-extensions]
480 | AddResult add(const ValueType& value) { return add<IdentityTranslatorType>(Extractor::extract(value), [&] ALWAYS_INLINE_LAMBDA { return value; }); }
```
with `#define ALWAYS_INLINE_LAMBDA __attribute__((__always_inline__))`.
It seems the C++20 compiler doesn't like `[...] ALWAYS_INLINE_LAMBDA {...}`, this can be fixed by adding an explicit empty parameter list before the macro: `[...]() ALWAYS_INLINE_LAMBDA {...}`.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/131735283>
Gerald Squelart
Pull request: https://github.com/WebKit/WebKit/pull/30809
EWS
Committed 280959@main (1609620e6541): <https://commits.webkit.org/280959@main>
Reviewed commits have been landed. Closing PR #30809 and removing active labels.