Bug 154794 - SVGToOTFFontConversion.cpp does not compile with libstdc++ 4.8
Summary: SVGToOTFFontConversion.cpp does not compile with libstdc++ 4.8
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: WebKit Local Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
Depends on:
Reported: 2016-02-28 09:15 PST by Konstantin Tokarev
Modified: 2016-02-28 12:12 PST (History)
4 users (show)

See Also:

Patch (1.60 KB, patch)
2016-02-28 09:37 PST, Konstantin Tokarev
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.