[Webkit-unassigned] [Bug 61724] New: JavaScriptCore fails to build with gcc 4.6 in C++0x mode: std::tr1::has_trivial_constructor

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon May 30 03:06:37 PDT 2011


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

           Summary: JavaScriptCore fails to build with gcc 4.6 in C++0x
                    mode: std::tr1::has_trivial_constructor
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: bero at arklinux.org


In file included from ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastAllocBase.h:84:0,
                 from ../3rdparty/javascriptcore/JavaScriptCore/wtf/Vector.h:24,
                 from ../3rdparty/javascriptcore/JavaScriptCore/pcre/pcre_exec.cpp:50:
../3rdparty/javascriptcore/JavaScriptCore/wtf/TypeTraits.h:173:69: error: ‘std::tr1’ has not been declared
../3rdparty/javascriptcore/JavaScriptCore/wtf/TypeTraits.h:173:74: error: expected ‘{’ before ‘has_trivial_constructor’
../3rdparty/javascriptcore/JavaScriptCore/wtf/TypeTraits.h:173:97: error: expected initializer before ‘<’ token
../3rdparty/javascriptcore/JavaScriptCore/wtf/TypeTraits.h:174:68: error: ‘std::tr1’ has not been declared
../3rdparty/javascriptcore/JavaScriptCore/wtf/TypeTraits.h:174:73: error: expected ‘{’ before ‘has_trivial_destructor’
../3rdparty/javascriptcore/JavaScriptCore/wtf/TypeTraits.h:174:95: error: expected initializer before ‘<’ token


>From a quick look at the headers, I think the right fix is to

#include <tr1/type_traits>

instead of

#include <type_traits>

(The latter doesn't use the tr1 namespace)

-- 
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