<?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>230599</bug_id>
          
          <creation_ts>2021-09-22 00:22:09 -0700</creation_ts>
          <short_desc>[Win][MSVC] REGRESSION(r282860): ClipboardItemBindingsDataSource.cpp(147): error C2955: &apos;WTF::Ref&apos;: use of class template requires template argument list</short_desc>
          <delta_ts>2021-09-22 15:00:12 -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>WebCore Misc.</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="Fujii Hironori">fujii</reporter>
          <assigned_to name="Fujii Hironori">fujii</assigned_to>
          <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1795965</commentid>
    <comment_count>0</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2021-09-22 00:22:09 -0700</bug_when>
    <thetext>[Win] REGRESSION(r282860): ClipboardItemBindingsDataSource.cpp(147): error C2955: &apos;WTF::Ref&apos;: use of class template requires template argument list

Windows Debug build (AppleWin and WinCairo ) is broken r282860 (Bug 230585)

https://build.webkit.org/#/builders/56/builds/4935

&gt; Source\WebCore\Modules/async-clipboard/ClipboardItemBindingsDataSource.cpp(147,13): error C2672: &apos;WTF::Vector&lt;WTF::Ref&lt;WebCore::ClipboardItemBindingsDataSource::ClipboardItemTypeLoader,WTF::RawPtrTraits&lt;T&gt;&gt;,0,WTF::CrashOnOverflow,16,WTF::VectorMalloc&gt;::findMatching&apos;: no matching overloaded function found [C:\cygwin\home\buildbot\worker\win10-debug\build\WebKitBuild\Debug\Source\WebCore\WebCore.vcxproj]
&gt; Source\WebCore\Modules/async-clipboard/ClipboardItemBindingsDataSource.cpp(147,13): error C2672:         with [C:\cygwin\home\buildbot\worker\win10-debug\build\WebKitBuild\Debug\Source\WebCore\WebCore.vcxproj]
&gt; Source\WebCore\Modules/async-clipboard/ClipboardItemBindingsDataSource.cpp(147,13): error C2672:         [ [C:\cygwin\home\buildbot\worker\win10-debug\build\WebKitBuild\Debug\Source\WebCore\WebCore.vcxproj]
&gt; Source\WebCore\Modules/async-clipboard/ClipboardItemBindingsDataSource.cpp(147,13): error C2672:             T=WebCore::ClipboardItemBindingsDataSource::ClipboardItemTypeLoader [C:\cygwin\home\buildbot\worker\win10-debug\build\WebKitBuild\Debug\Source\WebCore\WebCore.vcxproj]
&gt; Source\WebCore\Modules/async-clipboard/ClipboardItemBindingsDataSource.cpp(147,13): error C2672:         ] (compiling source file C:\cygwin\home\buildbot\worker\win10-debug\build\WebKitBuild\Debug\DerivedSources\WebCore\unified-sources\UnifiedSource-4babe430-1.cpp) [C:\cygwin\home\buildbot\worker\win10-debug\build\WebKitBuild\Debug\Source\WebCore\WebCore.vcxproj]

https://build.webkit.org/#/builders/38/builds/7385

&gt; C:\BW\wincairo-wkl-debug\build\Source\WebCore\Modules/async-clipboard/ClipboardItemBindingsDataSource.cpp(147): error C2955: &apos;WTF::Ref&apos;: use of class template requires template argument list
&gt; C:\BW\wincairo-wkl-debug\build\WebKitBuild\Debug\WTF\Headers\wtf/Ref.h(49): note: see declaration of &apos;WTF::Ref&apos;
&gt; C:\MSVS\VC\Tools\MSVC\14.28.29910\include\type_traits(1493): note: see reference to function template instantiation &apos;auto WebCore::ClipboardItemBindingsDataSource::collectDataForWriting::&lt;lambda_6589608709eb70dec6eaad19ea1ca6f9&gt;::operator ()&lt;const T&gt;(const T &amp;) const&apos; being compiled
&gt;         with
&gt;         [
&gt;             T=WTF::KeyValuePair&lt;WTF::String,WTF::RefPtr&lt;WebCore::DOMPromise,WTF::RawPtrTraits&lt;WebCore::DOMPromise&gt;,WTF::DefaultRefDerefTraits&lt;WebCore::DOMPromise&gt;&gt;&gt;
&gt;         ]
&gt; C:\MSVS\VC\Tools\MSVC\14.28.29910\include\type_traits(1721): note: see reference to alias template instantiation &apos;std::_Decltype_invoke_nonzero&lt;WebCore::ClipboardItemBindingsDataSource::collectDataForWriting::&lt;lambda_6589608709eb70dec6eaad19ea1ca6f9&gt;,const WTF::KeyValuePair&lt;WTF::String,WTF::RefPtr&lt;WebCore::DOMPromise,WTF::RawPtrTraits&lt;T&gt;,WTF::DefaultRefDerefTraits&lt;T&gt;&gt;&gt;&amp;,&gt;&apos; being compiled
&gt;         with
&gt;         [
&gt;             T=WebCore::DOMPromise
&gt;         ]
&gt; C:\BW\wincairo-wkl-debug\build\Source\WebCore\Modules/async-clipboard/ClipboardItemBindingsDataSource.cpp(185): note: see reference to class template instantiation &apos;std::result_of&lt;MapFunction (const T &amp;)&gt;&apos; being compiled
&gt;         with
&gt;         [
&gt;             MapFunction=WebCore::ClipboardItemBindingsDataSource::collectDataForWriting::&lt;lambda_6589608709eb70dec6eaad19ea1ca6f9&gt;,
&gt;             T=WTF::KeyValuePair&lt;WTF::String,WTF::RefPtr&lt;WebCore::DOMPromise,WTF::RawPtrTraits&lt;WebCore::DOMPromise&gt;,WTF::DefaultRefDerefTraits&lt;WebCore::DOMPromise&gt;&gt;&gt;
&gt;         ]
&gt; C:\BW\wincairo-wkl-debug\build\Source\WebCore\Modules/async-clipboard/ClipboardItemBindingsDataSource.cpp(147): error C2440: &apos;&lt;function-style-cast&gt;&apos;: cannot convert from &apos;initializer list&apos; to &apos;WebCore::ClipboardItemBindingsDataSource::collectDataForWriting::&lt;lambda_6589608709eb70dec6eaad19ea1ca6f9&gt;::()::&lt;lambda_7511e5bf98e47feee3350c36caa69610&gt;::()::&lt;lambda_f14ac325040a069e5ee0b583856388b6&gt;&apos;
&gt; C:\BW\wincairo-wkl-debug\build\Source\WebCore\Modules/async-clipboard/ClipboardItemBindingsDataSource.cpp(147): note: No constructor could take the source type, or constructor overload resolution was ambiguous
&gt; C:\BW\wincairo-wkl-debug\build\Source\WebCore\Modules/async-clipboard/ClipboardItemBindingsDataSource.cpp(147): error C2672: &apos;WTF::Vector&lt;WTF::Ref&lt;WebCore::ClipboardItemBindingsDataSource::ClipboardItemTypeLoader,WTF::RawPtrTraits&lt;T&gt;&gt;,0,WTF::CrashOnOverflow,16,WTF::VectorMalloc&gt;::findMatching&apos;: no matching overloaded function found
&gt;         with
&gt;         [
&gt;             T=WebCore::ClipboardItemBindingsDataSource::ClipboardItemTypeLoader
&gt;         ]
&gt; C:\BW\wincairo-wkl-debug\build\Source\WebCore\Modules/async-clipboard/ClipboardItemBindingsDataSource.cpp(133): error C2672: &apos;WTF::Vector&lt;WTF::KeyValuePair&lt;WTF::String,WTF::RefPtr&lt;WebCore::DOMPromise,WTF::RawPtrTraits&lt;T&gt;,WTF::DefaultRefDerefTraits&lt;T&gt;&gt;&gt;,0,WTF::CrashOnOverflow,16,WTF::VectorMalloc&gt;::map&apos;: no matching overloaded function found
&gt;         with
&gt;         [
&gt;             T=WebCore::DOMPromise
&gt;         ]
&gt; C:\BW\wincairo-wkl-debug\build\Source\WebCore\Modules/async-clipboard/ClipboardItemBindingsDataSource.cpp(133): error C2783: &apos;WTF::Vector&lt;R,0,WTF::CrashOnOverflow,16,WTF::VectorMalloc&gt; WTF::Vector&lt;WTF::KeyValuePair&lt;WTF::String,WTF::RefPtr&lt;WebCore::DOMPromise,WTF::RawPtrTraits&lt;T&gt;,WTF::DefaultRefDerefTraits&lt;T&gt;&gt;&gt;,0,WTF::CrashOnOverflow,16,WTF::VectorMalloc&gt;::map(MapFunction) const&apos;: could not deduce template argument for &apos;R&apos;
&gt;         with
&gt;         [
&gt;             T=WebCore::DOMPromise
&gt;         ]
&gt; C:\BW\wincairo-wkl-debug\build\WebKitBuild\Debug\WTF\Headers\wtf/Vector.h(841): note: see declaration of &apos;WTF::Vector&lt;WTF::KeyValuePair&lt;WTF::String,WTF::RefPtr&lt;WebCore::DOMPromise,WTF::RawPtrTraits&lt;T&gt;,WTF::DefaultRefDerefTraits&lt;T&gt;&gt;&gt;,0,WTF::CrashOnOverflow,16,WTF::VectorMalloc&gt;::map&apos;
&gt;         with
&gt;         [
&gt;             T=WebCore::DOMPromise
&gt;         ]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1795971</commentid>
    <comment_count>1</comment_count>
      <attachid>438929</attachid>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2021-09-22 00:51:49 -0700</bug_when>
    <thetext>Created attachment 438929
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1795985</commentid>
    <comment_count>2</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2021-09-22 01:24:50 -0700</bug_when>
    <thetext>Committed r282867 (241998@main): &lt;https://commits.webkit.org/241998@main&gt;

All reviewed patches have been landed. Closing bug and clearing flags on attachment 438929.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1795986</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-09-22 01:25:25 -0700</bug_when>
    <thetext>&lt;rdar://problem/83388178&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1796223</commentid>
    <comment_count>4</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2021-09-22 15:00:12 -0700</bug_when>
    <thetext>The /Zc:lambda switch can solve this prolem. This workaround will be removed after enabling /Zc:lambda switch for all Windows ports.
See also : Bug 226070 – [MSVC] The &quot;/Zc:lambda&quot; switch is recommended to use the new lambda processor.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>438929</attachid>
            <date>2021-09-22 00:51:49 -0700</date>
            <delta_ts>2021-09-22 01:24:50 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-230599-20210922165147.patch</filename>
            <type>text/plain</type>
            <size>1789</size>
            <attacher name="Fujii Hironori">fujii</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjgyODY1CmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViQ29yZS9D
aGFuZ2VMb2cgYi9Tb3VyY2UvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXggOGJmNWFiMWI0NDhjNGM1
MjJhNDFhZGRiNDM3MzY5ZDE3ZmJmY2ZjMS4uOGVmNDljODZlYzA2N2FkNzVmMmUzMTk5OTZhY2Qy
MDlkZDQ2NzU3OCAxMDA2NDQKLS0tIGEvU291cmNlL1dlYkNvcmUvQ2hhbmdlTG9nCisrKyBiL1Nv
dXJjZS9XZWJDb3JlL0NoYW5nZUxvZwpAQCAtMSwzICsxLDE0IEBACisyMDIxLTA5LTIyICBGdWpp
aSBIaXJvbm9yaSAgPEhpcm9ub3JpLkZ1amlpQHNvbnkuY29tPgorCisgICAgICAgIFtXaW5dW01T
VkNdIFJFR1JFU1NJT04ocjI4Mjg2MCk6IENsaXBib2FyZEl0ZW1CaW5kaW5nc0RhdGFTb3VyY2Uu
Y3BwKDE0Nyk6IGVycm9yIEMyOTU1OiAnV1RGOjpSZWYnOiB1c2Ugb2YgY2xhc3MgdGVtcGxhdGUg
cmVxdWlyZXMgdGVtcGxhdGUgYXJndW1lbnQgbGlzdAorICAgICAgICBodHRwczovL2J1Z3Mud2Vi
a2l0Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9MjMwNTk5CisKKyAgICAgICAgVW5yZXZpZXdlZCBidWls
ZCBmaXguCisKKyAgICAgICAgKiBNb2R1bGVzL2FzeW5jLWNs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