[Webkit-unassigned] [Bug 29919] New: JavaScriptCore/runtime/Structure.cpp doesn't compile on Visual Studio 2003

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Sep 30 05:20:39 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=29919

           Summary: JavaScriptCore/runtime/Structure.cpp doesn't compile
                    on Visual Studio 2003
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Other
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: khansen at trolltech.com
                CC: hausmann at webkit.org



Kent Hansen <khansen at trolltech.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #40362|                            |review?
               Flag|                            |


Created an attachment (id=40362)
 --> (https://bugs.webkit.org/attachment.cgi?id=40362)
Proposed patch

The compiler complains about ambiguity in calls, apparently because there is a
"using std::make_pair" in the WTF namespace (wtf/HashTraits.h) and
Structure.cpp has both "using namespace std" and "using namespace WTF".
Removing "using namespace std" makes it compile without any other changes
needed.

Compiler output:

..\3rdparty\javascriptcore\JavaScriptCore\runtime\Structure.cpp(157) : error
C2872: 'make_pair' : ambiguous symbol
could be ''unknown-type' make_pair'
or '..\3rdparty\javascriptcore\JavaScriptCore\wtf\HashTraits.h(32) :
std::pair<_Ty1,_Ty2> std::make_pair(_Ty1,_Ty2)'
or 'make_pair'
..\3rdparty\javascriptcore\JavaScriptCore\runtime\Structure.cpp(397) : error
C2872: 'make_pair' : ambiguous symbol
could be ''unknown-type' make_pair'
or '..\3rdparty\javascriptcore\JavaScriptCore\wtf\HashTraits.h(32) :
std::pair<_Ty1,_Ty2> std::make_pair(_Ty1,_Ty2)'
or 'make_pair'
..\3rdparty\javascriptcore\JavaScriptCore\runtime\Structure.cpp(451) : error
C2872: 'make_pair' : ambiguous symbol
could be ''unknown-type' make_pair'
or '..\3rdparty\javascriptcore\JavaScriptCore\wtf\HashTraits.h(32) :
std::pair<_Ty1,_Ty2> std::make_pair(_Ty1,_Ty2)'
or 'make_pair'
..\3rdparty\javascriptcore\JavaScriptCore\runtime\Structure.cpp(875) : error
C2872: 'make_pair' : ambiguous symbol
could be ''unknown-type' make_pair'
or '..\3rdparty\javascriptcore\JavaScriptCore\wtf\HashTraits.h(32) :
std::pair<_Ty1,_Ty2> std::make_pair(_Ty1,_Ty2)'
or 'make_pair'
..\3rdparty\javascriptcore\JavaScriptCore\runtime\Structure.cpp(1037) : error
C2668: 'std::max' : ambiguous call to overloaded function
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xutility(1242):
could be 'const unsigned int &std::max(const unsigned int &,const unsigned int
&)'
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xutility(1242):
or 'const unsigned int &std::max(const unsigned int &,const unsigned int &)'
while trying to match the argument list '(unsigned int, unsigned int)'

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list