Added explicit "friend class", because GCC 4.6 doesn't support extended friend declaration (c++11)
Created attachment 215382 [details] Patch
Comment on attachment 215382 [details] Patch Attachment 215382 [details] did not pass win-ews (win): Output: http://webkit-queues.appspot.com/results/17068097
Created attachment 215387 [details] Patch with speculative fix for Windows EWS
Created attachment 215390 [details] Patch one more attempt to make MSVC happy
Comment on attachment 215387 [details] Patch Attachment 215387 [details] did not pass win-ews (win): Output: http://webkit-queues.appspot.com/results/17118106
It seems it is a crazy MSVC bug, see https://bugs.webkit.org/show_bug.cgi?id=121883#c26 for details.
Could making the ScopedEventQueue destructor public help?
Hehe, we got it: friend class WTF::NeverDestroyed<WebCore::ScopedEventQueue>;
*** Bug 123733 has been marked as a duplicate of this bug. ***
Committed r158566: <http://trac.webkit.org/changeset/158566>