RESOLVED FIXED 281815
[WebCodecs] Build broken with clang 19
https://bugs.webkit.org/show_bug.cgi?id=281815
Summary [WebCodecs] Build broken with clang 19
Philippe Normand
Reported 2024-10-19 04:10:14 PDT
In file included from /var/home/phil/WebKit/WebKitBuild/GTK/Release/WebCore/DerivedSources/unified-sources/UnifiedSource-f8afad56-57.cpp:1: In file included from /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/VideoColorSpace.cpp:27: In file included from /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/VideoColorSpace.h:34: /var/home/phil/WebKit/WebKitBuild/GTK/Release/WTF/Headers/wtf/Ref.h:62:16: error: member access into incomplete type 'WebCore::HTMLImageElement' 62 | ptr->deref(); | ^ /var/home/phil/WebKit/WebKitBuild/GTK/Release/WTF/Headers/wtf/RefPtr.h:60:75: note: in instantiation of member function 'WTF::DefaultRefDerefTraits<WebCore::HTMLImageElement>::derefIfNotNull' requested here 60 | inline __attribute__((__always_inline__)) ~RefPtr() { RefDerefTraits::derefIfNotNull(PtrTraits::exchange(m_ptr, nullptr)); } | ^ /usr/bin/../lib/gcc/x86_64-redhat-linux/14/../../../../include/c++/14/variant:787:33: note: in instantiation of member function 'WTF::RefPtr<WebCore::HTMLImageElement>::~RefPtr' requested here 787 | template<typename _Ti> struct _Arr { _Ti _M_x[1]; }; | ^ /usr/bin/../lib/gcc/x86_64-redhat-linux/14/../../../../include/c++/14/bits/unique_ptr.h:93:2: note: in instantiation of member function 'WTF::Detail::CallableWrapper<(lambda at /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:147:74), void, WebCore::WebCodecsVideoDecoder &>::call' requested here 93 | delete __ptr; | ^ /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:147:74: note: in instantiation of function template specialization 'WTF::Function<void (WebCore::WebCodecsVideoDecoder &)>::Function<(lambda at /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:147:74), void>' requested here 147 | postTaskToCodec<WebCodecsVideoDecoder>(identifier, weakThis, [result = std::move<WTF::CheckMoveParameter>(result), decoderCount] (auto& decoder) mutable { | ^ /usr/bin/../lib/gcc/x86_64-redhat-linux/14/../../../../include/c++/14/bits/unique_ptr.h:93:2: note: in instantiation of member function 'WTF::Detail::CallableWrapper<(lambda at /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:146:105), void, std::experimental::expected<WebCore::VideoDecoder::DecodedFrame, WTF::String> &&>::call' requested here 93 | delete __ptr; | ^ /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:146:105: note: in instantiation of function template specialization 'WTF::Function<void (std::experimental::expected<WebCore::VideoDecoder::DecodedFrame, WTF::String> &&)>::Function<(lambda at /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:146:105), void>' requested here 146 | Ref createDecoderPromise = VideoDecoder::create(config.codec, createVideoDecoderConfig(config), [identifier, weakThis = ThreadSafeWeakPtr { *this }, decoderCount = ++m_decoderCount] (auto&& result) { | ^ /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoFrame.h:44:7: note: forward declaration of 'WebCore::HTMLImageElement' 44 | class HTMLImageElement; | ^ In file included from /var/home/phil/WebKit/WebKitBuild/GTK/Release/WebCore/DerivedSources/unified-sources/UnifiedSource-f8afad56-57.cpp:1: In file included from /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/VideoColorSpace.cpp:27: In file included from /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/VideoColorSpace.h:34: /var/home/phil/WebKit/WebKitBuild/GTK/Release/WTF/Headers/wtf/Ref.h:62:16: error: member access into incomplete type 'WebCore::SVGImageElement' 62 | ptr->deref(); | ^ /var/home/phil/WebKit/WebKitBuild/GTK/Release/WTF/Headers/wtf/RefPtr.h:60:75: note: in instantiation of member function 'WTF::DefaultRefDerefTraits<WebCore::SVGImageElement>::derefIfNotNull' requested here 60 | inline __attribute__((__always_inline__)) ~RefPtr() { RefDerefTraits::derefIfNotNull(PtrTraits::exchange(m_ptr, nullptr)); } | ^ /usr/bin/../lib/gcc/x86_64-redhat-linux/14/../../../../include/c++/14/variant:787:33: note: in instantiation of member function 'WTF::RefPtr<WebCore::SVGImageElement>::~RefPtr' requested here 787 | template<typename _Ti> struct _Arr { _Ti _M_x[1]; }; | ^ /usr/bin/../lib/gcc/x86_64-redhat-linux/14/../../../../include/c++/14/bits/unique_ptr.h:93:2: note: in instantiation of member function 'WTF::Detail::CallableWrapper<(lambda at /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:147:74), void, WebCore::WebCodecsVideoDecoder &>::call' requested here 93 | delete __ptr; | ^ /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:147:74: note: in instantiation of function template specialization 'WTF::Function<void (WebCore::WebCodecsVideoDecoder &)>::Function<(lambda at /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:147:74), void>' requested here 147 | postTaskToCodec<WebCodecsVideoDecoder>(identifier, weakThis, [result = std::move<WTF::CheckMoveParameter>(result), decoderCount] (auto& decoder) mutable { | ^ /usr/bin/../lib/gcc/x86_64-redhat-linux/14/../../../../include/c++/14/bits/unique_ptr.h:93:2: note: in instantiation of member function 'WTF::Detail::CallableWrapper<(lambda at /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:146:105), void, std::experimental::expected<WebCore::VideoDecoder::DecodedFrame, WTF::String> &&>::call' requested here 93 | delete __ptr; | ^ /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:146:105: note: in instantiation of function template specialization 'WTF::Function<void (std::experimental::expected<WebCore::VideoDecoder::DecodedFrame, WTF::String> &&)>::Function<(lambda at /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:146:105), void>' requested here 146 | Ref createDecoderPromise = VideoDecoder::create(config.codec, createVideoDecoderConfig(config), [identifier, weakThis = ThreadSafeWeakPtr { *this }, decoderCount = ++m_decoderCount] (auto&& result) { | ^ /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoFrame.h:50:7: note: forward declaration of 'WebCore::SVGImageElement' 50 | class SVGImageElement; | ^ In file included from /var/home/phil/WebKit/WebKitBuild/GTK/Release/WebCore/DerivedSources/unified-sources/UnifiedSource-f8afad56-57.cpp:1: In file included from /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/VideoColorSpace.cpp:27: In file included from /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/VideoColorSpace.h:34: /var/home/phil/WebKit/WebKitBuild/GTK/Release/WTF/Headers/wtf/Ref.h:62:16: error: member access into incomplete type 'WebCore::HTMLCanvasElement' 62 | ptr->deref(); | ^ /var/home/phil/WebKit/WebKitBuild/GTK/Release/WTF/Headers/wtf/RefPtr.h:60:75: note: in instantiation of member function 'WTF::DefaultRefDerefTraits<WebCore::HTMLCanvasElement>::derefIfNotNull' requested here 60 | inline __attribute__((__always_inline__)) ~RefPtr() { RefDerefTraits::derefIfNotNull(PtrTraits::exchange(m_ptr, nullptr)); } | ^ /usr/bin/../lib/gcc/x86_64-redhat-linux/14/../../../../include/c++/14/variant:787:33: note: in instantiation of member function 'WTF::RefPtr<WebCore::HTMLCanvasElement>::~RefPtr' requested here 787 | template<typename _Ti> struct _Arr { _Ti _M_x[1]; }; | ^ /usr/bin/../lib/gcc/x86_64-redhat-linux/14/../../../../include/c++/14/bits/unique_ptr.h:93:2: note: in instantiation of member function 'WTF::Detail::CallableWrapper<(lambda at /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:147:74), void, WebCore::WebCodecsVideoDecoder &>::call' requested here 93 | delete __ptr; | ^ /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:147:74: note: in instantiation of function template specialization 'WTF::Function<void (WebCore::WebCodecsVideoDecoder &)>::Function<(lambda at /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:147:74), void>' requested here 147 | postTaskToCodec<WebCodecsVideoDecoder>(identifier, weakThis, [result = std::move<WTF::CheckMoveParameter>(result), decoderCount] (auto& decoder) mutable { | ^ /usr/bin/../lib/gcc/x86_64-redhat-linux/14/../../../../include/c++/14/bits/unique_ptr.h:93:2: note: in instantiation of member function 'WTF::Detail::CallableWrapper<(lambda at /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:146:105), void, std::experimental::expected<WebCore::VideoDecoder::DecodedFrame, WTF::String> &&>::call' requested here 93 | delete __ptr; | ^ /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:146:105: note: in instantiation of function template specialization 'WTF::Function<void (std::experimental::expected<WebCore::VideoDecoder::DecodedFrame, WTF::String> &&)>::Function<(lambda at /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:146:105), void>' requested here 146 | Ref createDecoderPromise = VideoDecoder::create(config.codec, createVideoDecoderConfig(config), [identifier, weakThis = ThreadSafeWeakPtr { *this }, decoderCount = ++m_decoderCount] (auto&& result) { | ^ /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoFrame.h:43:7: note: forward declaration of 'WebCore::HTMLCanvasElement' 43 | class HTMLCanvasElement; | ^ In file included from /var/home/phil/WebKit/WebKitBuild/GTK/Release/WebCore/DerivedSources/unified-sources/UnifiedSource-f8afad56-57.cpp:1: In file included from /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/VideoColorSpace.cpp:27: In file included from /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/VideoColorSpace.h:34: /var/home/phil/WebKit/WebKitBuild/GTK/Release/WTF/Headers/wtf/Ref.h:62:16: error: member access into incomplete type 'WebCore::ImageBitmap' 62 | ptr->deref(); | ^ /var/home/phil/WebKit/WebKitBuild/GTK/Release/WTF/Headers/wtf/RefPtr.h:60:75: note: in instantiation of member function 'WTF::DefaultRefDerefTraits<WebCore::ImageBitmap>::derefIfNotNull' requested here 60 | inline __attribute__((__always_inline__)) ~RefPtr() { RefDerefTraits::derefIfNotNull(PtrTraits::exchange(m_ptr, nullptr)); } | ^ /usr/bin/../lib/gcc/x86_64-redhat-linux/14/../../../../include/c++/14/variant:787:33: note: in instantiation of member function 'WTF::RefPtr<WebCore::ImageBitmap>::~RefPtr' requested here 787 | template<typename _Ti> struct _Arr { _Ti _M_x[1]; }; | ^ /usr/bin/../lib/gcc/x86_64-redhat-linux/14/../../../../include/c++/14/bits/unique_ptr.h:93:2: note: in instantiation of member function 'WTF::Detail::CallableWrapper<(lambda at /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:147:74), void, WebCore::WebCodecsVideoDecoder &>::call' requested here 93 | delete __ptr; | ^ /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:147:74: note: in instantiation of function template specialization 'WTF::Function<void (WebCore::WebCodecsVideoDecoder &)>::Function<(lambda at /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:147:74), void>' requested here 147 | postTaskToCodec<WebCodecsVideoDecoder>(identifier, weakThis, [result = std::move<WTF::CheckMoveParameter>(result), decoderCount] (auto& decoder) mutable { | ^ /usr/bin/../lib/gcc/x86_64-redhat-linux/14/../../../../include/c++/14/bits/unique_ptr.h:93:2: note: in instantiation of member function 'WTF::Detail::CallableWrapper<(lambda at /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:146:105), void, std::experimental::expected<WebCore::VideoDecoder::DecodedFrame, WTF::String> &&>::call' requested here 93 | delete __ptr; | ^ /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:146:105: note: in instantiation of function template specialization 'WTF::Function<void (std::experimental::expected<WebCore::VideoDecoder::DecodedFrame, WTF::String> &&)>::Function<(lambda at /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:146:105), void>' requested here 146 | Ref createDecoderPromise = VideoDecoder::create(config.codec, createVideoDecoderConfig(config), [identifier, weakThis = ThreadSafeWeakPtr { *this }, decoderCount = ++m_decoderCount] (auto&& result) { | ^ /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoFrame.h:46:7: note: forward declaration of 'WebCore::ImageBitmap' 46 | class ImageBitmap; | ^ In file included from /var/home/phil/WebKit/WebKitBuild/GTK/Release/WebCore/DerivedSources/unified-sources/UnifiedSource-f8afad56-57.cpp:1: In file included from /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/VideoColorSpace.cpp:27: In file included from /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/VideoColorSpace.h:34: /var/home/phil/WebKit/WebKitBuild/GTK/Release/WTF/Headers/wtf/Ref.h:62:16: error: member access into incomplete type 'WebCore::CSSStyleImageValue' 62 | ptr->deref(); | ^ /var/home/phil/WebKit/WebKitBuild/GTK/Release/WTF/Headers/wtf/RefPtr.h:60:75: note: in instantiation of member function 'WTF::DefaultRefDerefTraits<WebCore::CSSStyleImageValue>::derefIfNotNull' requested here 60 | inline __attribute__((__always_inline__)) ~RefPtr() { RefDerefTraits::derefIfNotNull(PtrTraits::exchange(m_ptr, nullptr)); } | ^ /usr/bin/../lib/gcc/x86_64-redhat-linux/14/../../../../include/c++/14/variant:787:33: note: in instantiation of member function 'WTF::RefPtr<WebCore::CSSStyleImageValue>::~RefPtr' requested here 787 | template<typename _Ti> struct _Arr { _Ti _M_x[1]; }; | ^ /usr/bin/../lib/gcc/x86_64-redhat-linux/14/../../../../include/c++/14/bits/unique_ptr.h:93:2: note: in instantiation of member function 'WTF::Detail::CallableWrapper<(lambda at /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:147:74), void, WebCore::WebCodecsVideoDecoder &>::call' requested here 93 | delete __ptr; | ^ /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:147:74: note: in instantiation of function template specialization 'WTF::Function<void (WebCore::WebCodecsVideoDecoder &)>::Function<(lambda at /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:147:74), void>' requested here 147 | postTaskToCodec<WebCodecsVideoDecoder>(identifier, weakThis, [result = std::move<WTF::CheckMoveParameter>(result), decoderCount] (auto& decoder) mutable { | ^ /usr/bin/../lib/gcc/x86_64-redhat-linux/14/../../../../include/c++/14/bits/unique_ptr.h:93:2: note: in instantiation of member function 'WTF::Detail::CallableWrapper<(lambda at /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:146:105), void, std::experimental::expected<WebCore::VideoDecoder::DecodedFrame, WTF::String> &&>::call' requested here 93 | delete __ptr; | ^ /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:146:105: note: in instantiation of function template specialization 'WTF::Function<void (std::experimental::expected<WebCore::VideoDecoder::DecodedFrame, WTF::String> &&)>::Function<(lambda at /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:146:105), void>' requested here 146 | Ref createDecoderPromise = VideoDecoder::create(config.codec, createVideoDecoderConfig(config), [identifier, weakThis = ThreadSafeWeakPtr { *this }, decoderCount = ++m_decoderCount] (auto&& result) { | ^ /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoFrame.h:41:7: note: forward declaration of 'WebCore::CSSStyleImageValue' 41 | class CSSStyleImageValue; | ^ In file included from /var/home/phil/WebKit/WebKitBuild/GTK/Release/WebCore/DerivedSources/unified-sources/UnifiedSource-f8afad56-57.cpp:1: In file included from /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/VideoColorSpace.cpp:27: In file included from /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/VideoColorSpace.h:34: /var/home/phil/WebKit/WebKitBuild/GTK/Release/WTF/Headers/wtf/Ref.h:62:16: error: member access into incomplete type 'WebCore::OffscreenCanvas' 62 | ptr->deref(); | ^ /var/home/phil/WebKit/WebKitBuild/GTK/Release/WTF/Headers/wtf/RefPtr.h:60:75: note: in instantiation of member function 'WTF::DefaultRefDerefTraits<WebCore::OffscreenCanvas>::derefIfNotNull' requested here 60 | inline __attribute__((__always_inline__)) ~RefPtr() { RefDerefTraits::derefIfNotNull(PtrTraits::exchange(m_ptr, nullptr)); } | ^ /usr/bin/../lib/gcc/x86_64-redhat-linux/14/../../../../include/c++/14/variant:787:33: note: in instantiation of member function 'WTF::RefPtr<WebCore::OffscreenCanvas>::~RefPtr' requested here 787 | template<typename _Ti> struct _Arr { _Ti _M_x[1]; }; | ^ /usr/bin/../lib/gcc/x86_64-redhat-linux/14/../../../../include/c++/14/bits/unique_ptr.h:93:2: note: in instantiation of member function 'WTF::Detail::CallableWrapper<(lambda at /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:147:74), void, WebCore::WebCodecsVideoDecoder &>::call' requested here 93 | delete __ptr; | ^ /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:147:74: note: in instantiation of function template specialization 'WTF::Function<void (WebCore::WebCodecsVideoDecoder &)>::Function<(lambda at /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:147:74), void>' requested here 147 | postTaskToCodec<WebCodecsVideoDecoder>(identifier, weakThis, [result = std::move<WTF::CheckMoveParameter>(result), decoderCount] (auto& decoder) mutable { | ^ /usr/bin/../lib/gcc/x86_64-redhat-linux/14/../../../../include/c++/14/bits/unique_ptr.h:93:2: note: in instantiation of member function 'WTF::Detail::CallableWrapper<(lambda at /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:146:105), void, std::experimental::expected<WebCore::VideoDecoder::DecodedFrame, WTF::String> &&>::call' requested here 93 | delete __ptr; | ^ /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:146:105: note: in instantiation of function template specialization 'WTF::Function<void (std::experimental::expected<WebCore::VideoDecoder::DecodedFrame, WTF::String> &&)>::Function<(lambda at /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:146:105), void>' requested here 146 | Ref createDecoderPromise = VideoDecoder::create(config.codec, createVideoDecoderConfig(config), [identifier, weakThis = ThreadSafeWeakPtr { *this }, decoderCount = ++m_decoderCount] (auto&& result) { | ^ /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoFrame.h:49:7: note: forward declaration of 'WebCore::OffscreenCanvas' 49 | class OffscreenCanvas; | ^ In file included from /var/home/phil/WebKit/WebKitBuild/GTK/Release/WebCore/DerivedSources/unified-sources/UnifiedSource-f8afad56-57.cpp:1: In file included from /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/VideoColorSpace.cpp:27: In file included from /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/VideoColorSpace.h:34: /var/home/phil/WebKit/WebKitBuild/GTK/Release/WTF/Headers/wtf/Ref.h:62:16: error: member access into incomplete type 'WebCore::HTMLVideoElement' 62 | ptr->deref(); | ^ /var/home/phil/WebKit/WebKitBuild/GTK/Release/WTF/Headers/wtf/RefPtr.h:60:75: note: in instantiation of member function 'WTF::DefaultRefDerefTraits<WebCore::HTMLVideoElement>::derefIfNotNull' requested here 60 | inline __attribute__((__always_inline__)) ~RefPtr() { RefDerefTraits::derefIfNotNull(PtrTraits::exchange(m_ptr, nullptr)); } | ^ /usr/bin/../lib/gcc/x86_64-redhat-linux/14/../../../../include/c++/14/variant:787:33: note: in instantiation of member function 'WTF::RefPtr<WebCore::HTMLVideoElement>::~RefPtr' requested here 787 | template<typename _Ti> struct _Arr { _Ti _M_x[1]; }; | ^ /usr/bin/../lib/gcc/x86_64-redhat-linux/14/../../../../include/c++/14/bits/unique_ptr.h:93:2: note: in instantiation of member function 'WTF::Detail::CallableWrapper<(lambda at /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:147:74), void, WebCore::WebCodecsVideoDecoder &>::call' requested here 93 | delete __ptr; | ^ /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:147:74: note: in instantiation of function template specialization 'WTF::Function<void (WebCore::WebCodecsVideoDecoder &)>::Function<(lambda at /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:147:74), void>' requested here 147 | postTaskToCodec<WebCodecsVideoDecoder>(identifier, weakThis, [result = std::move<WTF::CheckMoveParameter>(result), decoderCount] (auto& decoder) mutable { | ^ /usr/bin/../lib/gcc/x86_64-redhat-linux/14/../../../../include/c++/14/bits/unique_ptr.h:93:2: note: in instantiation of member function 'WTF::Detail::CallableWrapper<(lambda at /var/home/phil/WebKit/Source/WebCo re/Modules/webcodecs/WebCodecsVideoDecoder.cpp:146:105), void, std::experimental::expected<WebCore::VideoDecoder::DecodedFrame, WTF::String> &&>::call' requested here 93 | delete __ptr; | ^ /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:146:105: note: in instantiation of function template specialization 'WTF::Function<void (std::experimental::expected<WebCore::VideoDecoder::DecodedFrame, WTF::String> &&)>::Function<(lambda at /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoDecoder.cpp:146:105), void>' requested here 146 | Ref createDecoderPromise = VideoDecoder::create(config.codec, createVideoDecoderConfig(config), [identifier, weakThis = ThreadSafeWeakPtr { *this }, decoderCount = ++m_decoderCount] (auto&& result) { | ^ /var/home/phil/WebKit/Source/WebCore/Modules/webcodecs/WebCodecsVideoFrame.h:45:7: note: forward declaration of 'WebCore::HTMLVideoElement' 45 | class HTMLVideoElement; | ^ 7 errors generated.
Attachments
Philippe Normand
Comment 1 2024-10-19 04:23:40 PDT
EWS
Comment 2 2024-10-19 05:02:23 PDT
Committed 285469@main (8d89e0e10505): <https://commits.webkit.org/285469@main> Reviewed commits have been landed. Closing PR #35483 and removing active labels.
Radar WebKit Bug Importer
Comment 3 2024-10-19 05:03:15 PDT
Note You need to log in before you can comment on or make changes to this bug.