<?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>266244</bug_id>
          
          <creation_ts>2023-12-11 11:40:52 -0800</creation_ts>
          <short_desc>REGRESSION(271419@main): [GTK][WPE] Build fails if clang &lt;= 14</short_desc>
          <delta_ts>2023-12-12 04:48:14 -0800</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="Diego Pino">dpino</reporter>
          <assigned_to name="Diego Pino">dpino</assigned_to>
          <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1998731</commentid>
    <comment_count>0</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2023-12-11 11:40:52 -0800</bug_when>
    <thetext>WebKitGTK and WPE are failing to build when using clang 14 after 271419@main. This changeset introduced a change that makes use of `std::views::values` in the files:
  - Source/WebCore/platform/graphics/gstreamer/mse/SourceBufferPrivateGStreamer.cpp
  - Source/WebCore/platform/graphics/gstreamer/mse/SourceBufferPrivateGStreamer.h

It seems clang-14 doesn&apos;t support `std::views:values`. Here is a small example that fails to build with clang-14:

```
#include &lt;iostream&gt;
#include &lt;map&gt;
#include &lt;ranges&gt;

int main() {
    std::map&lt;int, std::string&gt; myMap{
        {1, &quot;one&quot;},
        {2, &quot;two&quot;},
        {3, &quot;three&quot;}
    };

    for (const auto&amp; value : std::views::values(myMap)) {
        std::cout &lt;&lt; &quot;Value: &quot; &lt;&lt; value &lt;&lt; std::endl;
    }

    return 0;
}
```

Since this feature is only used in these two files in the entire WebKit codebase, I&apos;d like to revert the changes in those two files, so WebKitGTK and WPE can still be built with clang-14.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1998733</commentid>
    <comment_count>1</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2023-12-11 11:44:08 -0800</bug_when>
    <thetext>Pull request: https://github.com/webkit/webkit/pull/21645</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1998933</commentid>
    <comment_count>2</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-12-12 04:47:13 -0800</bug_when>
    <thetext>Committed 271921@main (0a646f68779a): &lt;https://commits.webkit.org/271921@main&gt;

Reviewed commits have been landed. Closing PR #21645 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1998934</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-12-12 04:48:14 -0800</bug_when>
    <thetext>&lt;rdar://problem/119549397&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>