[Webkit-unassigned] [Bug 254757] New: SVGPathSegValue<PathSegType>::clone hides SVGPathSeg::clone

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Mar 30 11:43:11 PDT 2023


https://bugs.webkit.org/show_bug.cgi?id=254757

            Bug ID: 254757
           Summary: SVGPathSegValue<PathSegType>::clone hides
                    SVGPathSeg::clone
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: SVG
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: mcatanzaro at gnome.org
                CC: sabouhallawa at apple.com, zimmermann at kde.org

SVGPathSeg has a virtual function SVGPathSeg::clone which you would expect to clone any SVGPathSeg, retaining its derived type. However, the virtual clone gets hidden by SVGPathSegValue<PathSegType>::clone because templated functions are never virtual. I think this means a clone operation on a SVGPathSeg pointer will work correctly if the SVGPathSeg is a SVGPathSegValue. This problem was found by GCC 13's -Woverloaded-virtual warning.

I don't know what to do about this. For now I'll just suppress the warning.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230330/3d10b7a7/attachment.htm>


More information about the webkit-unassigned mailing list