Bug 302139
| Summary: | WTFMove() is not supposed to compile when a `const` variable is passed in | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Chris Dumez <cdumez> |
| Component: | Web Template Framework | Assignee: | Chris Dumez <cdumez> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | g_squelart, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=301998 | ||
Chris Dumez
WTFMove() is not supposed to compile when a `const` variable is passed in, it the main reason we use `WTFMove()` over `std::move()`. However, this is currently not working as intended and it is compiling just fine. This can lead to bugs such as Bug 301998.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Chris Dumez
I am actively working on this and I have a local fix.
Chris Dumez
Pull request: https://github.com/WebKit/WebKit/pull/53579
Radar WebKit Bug Importer
<rdar://problem/164689074>
EWS
Committed 304711@main (021be8e5aefd): <https://commits.webkit.org/304711@main>
Reviewed commits have been landed. Closing PR #53579 and removing active labels.