Bug 19969

Summary: gcc 3.4.6 compiler bug
Product: WebKit Reporter: ./C <cbergstrom>
Component: WebKitGTKAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: alp, sroret
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Linux   

Description ./C 2008-07-10 01:48:02 PDT
There's a bug for gcc-3.4.6 on hardened gentoo.. I haven't confirmed against a vanilla build, but it's a recent regression and two line fix.

--- WebKit-r35067/WebCore/svg/SynchronizableTypeWrapper.h.orig  2008-07-10 05:36:20.000000000 +0200
+++ WebKit-r35067/WebCore/svg/SynchronizableTypeWrapper.h       2008-07-10 05:37:28.000000000 +0200
@@ -159,7 +159,7 @@
     inline SynchronizableTypeWrapper<RefPtr<StoredPointerType> >::SynchronizableTypeWrapper(const PassRefPtr<StoredPointerType>& type)
         : Base()
     {
-        m_value = type;
+        this->m_value = type;
     }

     template<typename StoredPointerType>
@@ -172,7 +172,7 @@
     template<typename StoredPointerType>
     inline SynchronizableTypeWrapper<RefPtr<StoredPointerType> >::operator StoredPointerType*() const
     {
-        return m_value.get();
+        return this->m_value.get();
     }

 };
Comment 1 Sébastien Roret 2008-07-11 05:22:00 PDT
It also happens to me with rev 35068.
I'm compiling inside Maemo's SDK which uses gcc 3.4.4

The fix works for me also.
Comment 2 Alexey Proskuryakov 2008-07-15 15:11:56 PDT
Would you be willing to submit the patch according to <http://webkit.org/coding/contributing.html>?
Comment 3 Sébastien Roret 2008-07-16 08:33:51 PDT
Alexey, it seems that this has been fixed in r35158. It works now, thanks.