Bug 175706 - [Win] TestWebKitAPI/Tests/WTF/PriorityQueue.cpp: error C2440: 'specialization': cannot convert from 'unknown-type *' to 'bool (__cdecl *)(const unsigned int &,const unsigned int &)'
Summary: [Win] TestWebKitAPI/Tests/WTF/PriorityQueue.cpp: error C2440: 'specialization...
Status: RESOLVED DUPLICATE of bug 176442
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-17 20:27 PDT by Fujii Hironori
Modified: 2017-09-05 23:31 PDT (History)
4 users (show)

See Also:


Attachments
simple test case (208 bytes, text/plain)
2017-08-20 22:14 PDT, Fujii Hironori
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fujii Hironori 2017-08-17 20:27:25 PDT
I see the following compilation error in my env.
WinCairo port, trunk@220897, Debug build, VS2015 update 3

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


VS2017 seems fine because BuildBots are green.
Comment 1 Fujii Hironori 2017-08-17 22:06:35 PDT
AppleWin BuildBots are using VS2015.
It happens only in my env?
Comment 2 Yusuke Suzuki 2017-08-19 09:06:40 PDT
(In reply to Fujii Hironori from comment #1)
> AppleWin BuildBots are using VS2015.
> It happens only in my env?

According to the buildbot, AppleWin buildbots use VS2015 and compiles them fine... Hmmm.
Comment 3 Don Olmstead 2017-08-19 13:32:17 PDT
(In reply to Yusuke Suzuki from comment #2)
> (In reply to Fujii Hironori from comment #1)
> > AppleWin BuildBots are using VS2015.
> > It happens only in my env?
> 
> According to the buildbot, AppleWin buildbots use VS2015 and compiles them
> fine... Hmmm.

I'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't attempt a fix.
Comment 4 Fujii Hironori 2017-08-20 22:14:47 PDT
Created attachment 318614 [details]
simple test case

> C:\home\fujii\tmp>cl a.cpp
> Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24215.1 for x64
> Copyright (C) Microsoft Corporation.  All rights reserved.
> 
> a.cpp
> a.cpp(15): error C2440: 'specialization': cannot convert from 'unknown-type *' to 'void (__cdecl *)(int)'
> a.cpp(15): note: There is no context in which this conversion is possible
> 
> C:\home\fujii\tmp>
Comment 5 Fujii Hironori 2017-08-21 16:09:05 PDT
AppleWin BuildBot is using older version of MSVC than mine. I don't know this is relevant.

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

> -- Building for: Visual Studio 14 2015
> -- The C compiler identification is MSVC 19.0.23918.0
> -- The CXX compiler identification is MSVC 19.0.23918.0
Comment 6 Fujii Hironori 2017-09-05 23:31:50 PDT

*** This bug has been marked as a duplicate of bug 176442 ***