<?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>175706</bug_id>
          
          <creation_ts>2017-08-17 20:27:25 -0700</creation_ts>
          <short_desc>[Win] TestWebKitAPI/Tests/WTF/PriorityQueue.cpp: error C2440: &apos;specialization&apos;: cannot convert from &apos;unknown-type *&apos; to &apos;bool (__cdecl *)(const unsigned int &amp;,const unsigned int &amp;)&apos;</short_desc>
          <delta_ts>2017-09-05 23:31:50 -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>Tools / Tests</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>176442</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></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="Nobody">webkit-unassigned</assigned_to>
          <cc>don.olmstead</cc>
    
    <cc>lforschler</cc>
    
    <cc>pvollan</cc>
    
    <cc>ysuzuki</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1339930</commentid>
    <comment_count>0</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2017-08-17 20:27:25 -0700</bug_when>
    <thetext>I see the following compilation error in my env.
WinCairo port, trunk@220897, Debug build, VS2015 update 3

&gt; ------ Build started: Project: TestWTFLib, Configuration: Debug x64 ------
&gt;   PriorityQueue.cpp
&gt; C:\webkit\ga\Tools\TestWebKitAPI\Tests\WTF\PriorityQueue.cpp(59): error C2440: &apos;specialization&apos;: cannot convert from &apos;unknown-type *&apos; to &apos;bool (__cdecl *)(const unsigned int &amp;,const unsigned int &amp;)&apos;
&gt;   C:\webkit\ga\Tools\TestWebKitAPI\Tests\WTF\PriorityQueue.cpp(59): note: There is no context in which this conversion is possible
&gt; C:\webkit\ga\Tools\TestWebKitAPI\Tests\WTF\PriorityQueue.cpp(79): error C2440: &apos;specialization&apos;: cannot convert from &apos;unknown-type *&apos; to &apos;bool (__cdecl *)(const unsigned int &amp;,const unsigned int &amp;)&apos;
&gt;   C:\webkit\ga\Tools\TestWebKitAPI\Tests\WTF\PriorityQueue.cpp(79): note: There is no context in which this conversion is possible
&gt; C:\webkit\ga\Tools\TestWebKitAPI\Tests\WTF\PriorityQueue.cpp(109): error C2440: &apos;specialization&apos;: cannot convert from &apos;unknown-type *&apos; to &apos;bool (__cdecl *)(const unsigned int &amp;,const unsigned int &amp;)&apos;
&gt;   C:\webkit\ga\Tools\TestWebKitAPI\Tests\WTF\PriorityQueue.cpp(109): note: There is no context in which this conversion is possible
&gt; C:\webkit\ga\Tools\TestWebKitAPI\Tests\WTF\PriorityQueue.cpp(126): error C2440: &apos;specialization&apos;: cannot convert from &apos;unknown-type *&apos; to &apos;bool (__cdecl *)(const unsigned int &amp;,const unsigned int &amp;)&apos;
&gt;   C:\webkit\ga\Tools\TestWebKitAPI\Tests\WTF\PriorityQueue.cpp(126): note: There is no context in which this conversion is possible
&gt; C:\webkit\ga\Tools\TestWebKitAPI\Tests\WTF\PriorityQueue.cpp(152): error C2440: &apos;specialization&apos;: cannot convert from &apos;unknown-type *&apos; to &apos;bool (__cdecl *)(const unsigned int &amp;,const unsigned int &amp;)&apos;
&gt;   C:\webkit\ga\Tools\TestWebKitAPI\Tests\WTF\PriorityQueue.cpp(152): note: There is no context in which this conversion is possible
&gt; C:\webkit\ga\Tools\TestWebKitAPI\Tests\WTF\PriorityQueue.cpp(178): error C2440: &apos;specialization&apos;: cannot convert from &apos;unknown-type *&apos; to &apos;bool (__cdecl *)(const unsigned int &amp;,const unsigned int &amp;)&apos;
&gt;   C:\webkit\ga\Tools\TestWebKitAPI\Tests\WTF\PriorityQueue.cpp(178): note: There is no context in which this conversion is possible
&gt; C:\webkit\ga\Tools\TestWebKitAPI\Tests\WTF\PriorityQueue.cpp(210): error C2440: &apos;specialization&apos;: cannot convert from &apos;unknown-type *&apos; to &apos;bool (__cdecl *)(const uint64_t &amp;,const uint64_t &amp;)&apos;
&gt;   C:\webkit\ga\Tools\TestWebKitAPI\Tests\WTF\PriorityQueue.cpp(210): note: There is no context in which this conversion is possible
&gt; ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


VS2017 seems fine because BuildBots are green.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1339965</commentid>
    <comment_count>1</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2017-08-17 22:06:35 -0700</bug_when>
    <thetext>AppleWin BuildBots are using VS2015.
It happens only in my env?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1340397</commentid>
    <comment_count>2</comment_count>
    <who name="Yusuke Suzuki">ysuzuki</who>
    <bug_when>2017-08-19 09:06:40 -0700</bug_when>
    <thetext>(In reply to Fujii Hironori from comment #1)
&gt; AppleWin BuildBots are using VS2015.
&gt; It happens only in my env?

According to the buildbot, AppleWin buildbots use VS2015 and compiles them fine... Hmmm.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1340416</commentid>
    <comment_count>3</comment_count>
    <who name="Don Olmstead">don.olmstead</who>
    <bug_when>2017-08-19 13:32:17 -0700</bug_when>
    <thetext>(In reply to Yusuke Suzuki from comment #2)
&gt; (In reply to Fujii Hironori from comment #1)
&gt; &gt; AppleWin BuildBots are using VS2015.
&gt; &gt; It happens only in my env?
&gt; 
&gt; According to the buildbot, AppleWin buildbots use VS2015 and compiles them
&gt; fine... Hmmm.

I&apos;ve seen this as well with WinCairo being built on VS2015. The buildbot is 2017 and it seemed like we were close to dropping 2015 so I didn&apos;t attempt a fix.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1340521</commentid>
    <comment_count>4</comment_count>
      <attachid>318614</attachid>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2017-08-20 22:14:47 -0700</bug_when>
    <thetext>Created attachment 318614
simple test case

&gt; C:\home\fujii\tmp&gt;cl a.cpp
&gt; Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24215.1 for x64
&gt; Copyright (C) Microsoft Corporation.  All rights reserved.
&gt; 
&gt; a.cpp
&gt; a.cpp(15): error C2440: &apos;specialization&apos;: cannot convert from &apos;unknown-type *&apos; to &apos;void (__cdecl *)(int)&apos;
&gt; a.cpp(15): note: There is no context in which this conversion is possible
&gt; 
&gt; C:\home\fujii\tmp&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1340803</commentid>
    <comment_count>5</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2017-08-21 16:09:05 -0700</bug_when>
    <thetext>AppleWin BuildBot is using older version of MSVC than mine. I don&apos;t know this is relevant.

https://build.webkit.org/builders/Apple%20Win%20Release%20%28Build%29/builds/3735/steps/compile-webkit/logs/stdio/text

&gt; -- Building for: Visual Studio 14 2015
&gt; -- The C compiler identification is MSVC 19.0.23918.0
&gt; -- The CXX compiler identification is MSVC 19.0.23918.0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1345827</commentid>
    <comment_count>6</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2017-09-05 23:31:50 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 176442 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>318614</attachid>
            <date>2017-08-20 22:14:47 -0700</date>
            <delta_ts>2017-08-20 22:14:47 -0700</delta_ts>
            <desc>simple test case</desc>
            <filename>a.cpp</filename>
            <type>text/plain</type>
            <size>208</size>
            <attacher name="Fujii Hironori">fujii</attacher>
            
              <data encoding="base64">CnRlbXBsYXRlPHR5cGVuYW1lIFQ+CmlubGluZSBjb25zdGV4cHIgdm9pZCB4eXooVCkKewp9Cgp0
ZW1wbGF0ZTx0eXBlbmFtZSBULCB2b2lkICgqZnVuYykoVCkgPSAmeHl6PFQ+PgpzdHJ1Y3QgRm9v
IHsKCXZvaWQgdGVzdCgpIHsgVCB0ID0gMDsgZnVuYyh0KTsgfQp9OwoKaW50Cm1haW4oKQp7CglG
b288aW50PiBmMTsKCWYxLnRlc3QoKTsKCXJldHVybiAwOwp9Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>