[Webkit-unassigned] [Bug 220662] New: std::is_literal_type causes -Wdeprecated-declarations warning with GCC 11

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jan 15 11:52:00 PST 2021


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

            Bug ID: 220662
           Summary: std::is_literal_type causes -Wdeprecated-declarations
                    warning with GCC 11
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Web Template Framework
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: mcatanzaro at gnome.org

It seems std::is_literal_type was removed from C++ 20, so now GCC is warning that we use it in wtf/Variant.h:

DerivedSources/ForwardingHeaders/wtf/Variant.h:390:35: warning: 'template<class _Tp> struct std::is_literal_type' is deprecated [-Wdeprecated-declarations]
  390 | template<typename _Type,bool=std::is_literal_type<_Type>::value>
      |                                   ^~~~~~~~~~~~~~~

This header is included in a lot of places, so it spams the build log pretty badly. Sadly, std::is_literal_type was removed without replacement. More info here: https://stackoverflow.com/questions/40351816/deprecated-stdis-literal-type-in-c17#40352351. So solution is a little unclear. I might just suppress the warning with IGNORE_WARNINGS and keep the current behavior... other proposals welcome.

-- 
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/20210115/5500b9bc/attachment.htm>


More information about the webkit-unassigned mailing list