Bug 154794

Summary: SVGToOTFFontConversion.cpp does not compile with libstdc++ 4.8
Product: WebKit Reporter: Konstantin Tokarev <annulen>
Component: WebCore Misc.Assignee: Nobody <webkit-unassigned>
Severity: Normal CC: commit-queue, mcatanzaro, mmaxfield, ossy
Priority: P2    
Version: WebKit Local Build   
Hardware: Unspecified   
OS: Unspecified   
Description Flags
Patch none

Description Konstantin Tokarev 2016-02-28 09:15:01 PST
Error message produced by clang 3.7 (g++ 4.8 also produces error, but message is less readable):

/usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/bits/stl_algo.h:2266:11: error: no matching function for call to object of type '(lambda at ../../../Source/WebCore/svg/SVGToOTFFontConversion.cpp:756:59)'
   while (__comp(__pivot, *__last))
../../../Source/WebCore/svg/SVGToOTFFontConversion.cpp:756:59: note: candidate function not viable: 1st argument ('const std::pair<WTF::Vector<unsigned short, 3, WTF::CrashOnOverflow, 16>, unsigned short>') would lose const qualifier
    std::sort(ligaturePairs.begin(), ligaturePairs.end(), [](LigaturePair& lhs, LigaturePair& rhs) {
../../../Source/WebCore/svg/SVGToOTFFontConversion.cpp:756:59: note: conversion candidate of type 'bool (*)(LigaturePair &, LigaturePair &)'
Comment 1 Konstantin Tokarev 2016-02-28 09:37:38 PST
Created attachment 272457 [details]
Comment 2 WebKit Commit Bot 2016-02-28 12:11:59 PST
Comment on attachment 272457 [details]

Clearing flags on attachment: 272457

Committed r197298: <http://trac.webkit.org/changeset/197298>
Comment 3 WebKit Commit Bot 2016-02-28 12:12:04 PST
All reviewed patches have been landed.  Closing bug.