RESOLVED FIXED305791
REGRESSION(305823@main): Cannot build WeakPtr API tests with Clang 18
https://bugs.webkit.org/show_bug.cgi?id=305791
Summary REGRESSION(305823@main): Cannot build WeakPtr API tests with Clang 18
Adrian Perez
Reported 2026-01-19 14:12:50 PST
There's a number of errors similar to the following: ../../../Tools/TestWebKitAPI/Tests/WTF/WeakPtr.cpp:366:17: error: alias template 'WeakPtr' requires template arguments; argument deduction only allowed for class templates 366 | WeakPtr derivedWeakPtr { derived }; | ^ ../../../Tools/TestWebKitAPI/Tests/WTF/WeakPtr.cpp:91:22: note: template is declared here 91 | template<typename T> using WeakPtr = WTF::WeakPtr<T, WeakPtrImplWithCounter>; | ^ We can add the template parameter explicitly to get those to build. The issue seems to be with the local WeakPtr type alias, which is declared with “using”.
Attachments
Adrian Perez
Comment 1 2026-01-19 14:16:23 PST
EWS
Comment 2 2026-01-19 15:18:46 PST
Committed 305836@main (553115957809): <https://commits.webkit.org/305836@main> Reviewed commits have been landed. Closing PR #56854 and removing active labels.
Radar WebKit Bug Importer
Comment 3 2026-01-19 15:19:13 PST
Note You need to log in before you can comment on or make changes to this bug.