<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>315198</bug_id>
          
          <creation_ts>2026-05-20 08:14:51 -0700</creation_ts>
          <short_desc>Fix WTF::Variant build with GCC 15</short_desc>
          <delta_ts>2026-05-21 08:42:14 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>New Bugs</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Loïc Yhuel">loic.yhuel</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2212540</commentid>
    <comment_count>0</comment_count>
    <who name="Loïc Yhuel">loic.yhuel</who>
    <bug_when>2026-05-20 08:14:51 -0700</bug_when>
    <thetext>Build is broken after https://commits.webkit.org/313528@main.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2212542</commentid>
    <comment_count>1</comment_count>
    <who name="Loïc Yhuel">loic.yhuel</who>
    <bug_when>2026-05-20 08:32:10 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/65293</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2212545</commentid>
    <comment_count>2</comment_count>
    <who name="Loïc Yhuel">loic.yhuel</who>
    <bug_when>2026-05-20 08:39:03 -0700</bug_when>
    <thetext>In file included from /home/src/upstream/webkit/Source/WTF/wtf/StdLibExtras.h:52,
                 from /home/src/upstream/webkit/Source/WTF/wtf/MallocCommon.h:29,
                 from /home/src/upstream/webkit/Source/WTF/wtf/FastMalloc.h:28,
                 from /home/src/upstream/webkit/Source/WTF/config.h:31,
                 from /home/src/upstream/webkit/Source/WTF/wtf/JSONValues.cpp:33:
/home/src/upstream/webkit/Source/WTF/wtf/Variant.h: In instantiation of ‘constexpr mpark::detail::base&lt;Ts&gt;::alt_at&lt;I&gt;&amp; mpark::detail::base&lt;Ts&gt;::get_alt() const &amp; [with long unsigned int I = 6; Ts = {std::monostate, bool, double, int, WTF::String, WTF::JSONImpl::Value::ObjectTypeTag, WTF::JSONImpl::Value::ArrayTypeTag}]’:
/home/src/upstream/webkit/Source/WTF/wtf/Variant.h:1475:66: error: use of built-in trait ‘__type_pack_element&lt;I, std::monostate, bool, double, int, WTF::String, WTF::JSONImpl::Value::ObjectTypeTag, WTF::JSONImpl::Value::ArrayTypeTag&gt;’ in function signature; use library traits instead
 1475 |       template &lt;std::size_t I&gt; inline constexpr const alt_at&lt;I&gt; &amp;get_alt() const &amp; noexcept {
      |                                                                  ^~~~~~~
/home/src/upstream/webkit/Source/WTF/wtf/Variant.h: In instantiation of ‘constexpr mpark::detail::base&lt;Ts&gt;::alt_at&lt;I&gt;&amp; mpark::detail::base&lt;Ts&gt;::get_alt() const &amp; [with long unsigned int I = 5; Ts = {std::monostate, bool, double, int, WTF::String, WTF::JSONImpl::Value::ObjectTypeTag, WTF::JSONImpl::Value::ArrayTypeTag}]’:
/home/src/upstream/webkit/Source/WTF/wtf/Variant.h:1475:66: error: use of built-in trait ‘__type_pack_element&lt;I, std::monostate, bool, double, int, WTF::String, WTF::JSONImpl::Value::ObjectTypeTag, WTF::JSONImpl::Value::ArrayTypeTag&gt;’ in function signature; use library traits instead
...
/home/src/upstream/webkit/Source/WTF/wtf/Variant.h: In instantiation of ‘constexpr mpark::detail::base&lt;Ts&gt;::alt_at&lt;I&gt;&amp; mpark::detail::base&lt;Ts&gt;::get_alt() &amp; [with long unsigned int I = 6; Ts = {std::monostate, bool, double, int, WTF::String, WTF::JSONImpl::Value::ObjectTypeTag, WTF::JSONImpl::Value::ArrayTypeTag}]’:
/home/src/upstream/webkit/Source/WTF/wtf/Variant.h:1472:60: error: use of built-in trait ‘__type_pack_element&lt;I, std::monostate, bool, double, int, WTF::String, WTF::JSONImpl::Value::ObjectTypeTag, WTF::JSONImpl::Value::ArrayTypeTag&gt;’ in function signature; use library traits instead
 1472 |       template &lt;std::size_t I&gt; inline constexpr alt_at&lt;I&gt; &amp;get_alt() &amp; noexcept {
      |                                                            ^~~~~~~
...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2212933</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2026-05-21 08:41:45 -0700</bug_when>
    <thetext>Committed 313666@main (3917eb489bf7): &lt;https://commits.webkit.org/313666@main&gt;

Reviewed commits have been landed. Closing PR #65293 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2212934</commentid>
    <comment_count>4</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2026-05-21 08:42:14 -0700</bug_when>
    <thetext>&lt;rdar://problem/177626501&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>