[Webkit-unassigned] [Bug 45893] New: Add the namespace in a friend declaration to get MSVC recognize it properly.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Sep 16 08:26:07 PDT 2010


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

           Summary: Add the namespace in a friend declaration to get MSVC
                    recognize it properly.
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: Forms
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: satish at chromium.org


This is a fix for a build break caused by r67614 in the chromium windows builders (which use VS 2008). Looks like without the proper namespace, the friend declaration was treated as a forward declaration and the build failed with the following error message:

1>JavaScriptCore\wtf/RefCounted.h(139) : error C2248: 'WebCore::FileWriter::~FileWriter' : cannot access private member declared in class 'WebCore::FileWriter'
1>        webcore\fileapi\FileWriter.h(124) : compiler has generated 'WebCore::FileWriter::~FileWriter' here
1>        webcore\fileapi\FileWriter.h(52) : see declaration of 'WebCore::FileWriter'
1>        JavaScriptCore\wtf/RefCounted.h(137) : while compiling class template member function 'void WTF::RefCounted<T>::deref(void)'
1>        with
1>        [
1>            T=WebCore::FileWriter
1>        ]
1>        webcore\fileapi\FileWriter.h(52) : see reference to class template instantiation 'WTF::RefCounted<T>' being compiled
1>        with
1>        [
1>            T=WebCore::FileWriter
1>        ]

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