[Webkit-unassigned] [Bug 235610] New: MediaTime.h:167:71: error: call to non-'constexpr' function 'WTF::MediaTime& WTF::MediaTime::operator=(const WTF::MediaTime&)'

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jan 25 14:39:02 PST 2022


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

            Bug ID: 235610
           Summary: MediaTime.h:167:71: error: call to non-'constexpr'
                    function 'WTF::MediaTime&
                    WTF::MediaTime::operator=(const WTF::MediaTime&)'
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKitGTK
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: mcatanzaro at gnome.org
                CC: aboya at igalia.com, bugs-noreply at webkitgtk.org

WebKitGTK 2.35.1 fails to build with GCC 12 on 32-bit ARM (and not other architectures):

In file included from /builddir/build/BUILD/webkitgtk-2.35.1/Source/WTF/wtf/MediaTime.cpp:30:
/builddir/build/BUILD/webkitgtk-2.35.1/Source/WTF/wtf/MediaTime.h: In constructor 'constexpr WTF::MediaTime::MediaTime(int64_t, uint32_t, uint8_t)':
/builddir/build/BUILD/webkitgtk-2.35.1/Source/WTF/wtf/MediaTime.h:167:71: error: call to non-'constexpr' function 'WTF::MediaTime& WTF::MediaTime::operator=(const WTF::MediaTime&)'
  167 |     *this = value < 0 ? negativeInfiniteTime() : positiveInfiniteTime();
      |                                                                       ^
/builddir/build/BUILD/webkitgtk-2.35.1/Source/WTF/wtf/MediaTime.h:68:16: note: 'WTF::MediaTime& WTF::MediaTime::operator=(const WTF::MediaTime&)' declared here
   68 |     MediaTime& operator=(const MediaTime& rhs);
      |                ^~~~~~~~

I'm not sure what makes 32-bit ARM special here. Anyway the problem is clear enough: the constexpr constructor calls the non-constexpr assignment operator. I will test a potential fix.

-- 
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/20220125/923435a3/attachment-0001.htm>


More information about the webkit-unassigned mailing list