Bug 259729

Summary: Fails to build with GCC 13 due to overloaded-virtual error in FilterEffect
Product: WebKit Reporter: Carlos Garcia Campos <cgarcia>
Component: PlatformAssignee: Carlos Garcia Campos <cgarcia>
Status: RESOLVED FIXED    
Severity: Normal CC: sabouhallawa, simon.fraser, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Carlos Garcia Campos
Reported 2023-08-02 03:46:01 PDT
In file included from WebKit/Source/WebCore/platform/graphics/filters/FilterResults.h:28, from WebKit/Source/WebCore/rendering/svg/RenderSVGResourceFilter.h:26, from WebKit/Source/WebCore/svg/SVGFilterPrimitiveStandardAttributes.h:25, from WebKit/Source/WebCore/svg/SVGFEBlendElement.h:26, from WebKit/WebKitBuild/Release/WebCore/DerivedSources/SVGElementFactory.cpp:49, from WebKit/WebKitBuild/Release/WebCore/DerivedSources/unified-sources/UnifiedSource-3a52ce78-171.cpp:5: WebKit/Source/WebCore/platform/graphics/filters/FilterEffect.h:44:18: error: ‘virtual bool WebCore::FilterEffect::operator==(const WebCore::FilterEffect&) const’ was hidden [-Werror=overloaded-virtual=] 44 | virtual bool operator==(const FilterEffect&) const; | ^~~~~~~~ In file included from WebKit/Source/WebCore/platform/graphics/filters/FESpecularLighting.h:25, from WebKit/Source/WebCore/platform/graphics/filters/FESpecularLighting.h:25, from WebKit/Source/WebCore/svg/SVGFESpecularLightingElement.h:25, from WebKit/WebKitBuild/Release/WebCore/DerivedSources/SVGElementFactory.cpp:70: WebKit/Source/WebCore/platform/graphics/filters/FELighting.h:42:10: note: by ‘bool WebCore::FELighting::operator==(const WebCore::FELighting&) const’ 42 | bool operator==(const FELighting&) const; | ^~~~~~~~
Attachments
Carlos Garcia Campos
Comment 1 2023-08-02 03:50:55 PDT
I fixed it by overriding operator== in FELighting.h and just returning false, since it shouldn't be called, if I understood it correctly, because FELighting is abstract. I don't know if that's the right fix, though.
Carlos Garcia Campos
Comment 2 2023-08-02 04:02:38 PDT
EWS
Comment 3 2023-08-03 04:16:15 PDT
Committed 266539@main (c85962a5c0e9): <https://commits.webkit.org/266539@main> Reviewed commits have been landed. Closing PR #16310 and removing active labels.
Radar WebKit Bug Importer
Comment 4 2023-08-03 04:17:17 PDT
Note You need to log in before you can comment on or make changes to this bug.