[Webkit-unassigned] [Bug 154535] Workaround for ICE in GCC 4.8 appeared in r196846.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Feb 22 10:09:22 PST 2016


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

--- Comment #9 from Chris Dumez <cdumez at apple.com> ---
(In reply to comment #8)
> (In reply to comment #7)
> 
> > I don't think we do have a equalIgnoringASCIICase() overload that takes a
> > literal. Therefore, if you pass "off" it likely calls:
> > inline bool equalIgnoringASCIICase(const String& a, const char* b);
> > 
> > Which means we don't know the length of b in advance. If we pass a String
> > in, the size of b is known in advance.
> 
> I believe it calls
> 
> template<unsigned length> bool equalLettersIgnoringASCIICase(const
> StringImpl&, const char (&lowercaseLetters)[length]);

oh, I did indeed miss the one taking a literal:
template<unsigned length> inline bool equalLettersIgnoringASCIICase(const AtomicString& string, const char (&lowercaseLetters)[length]);

That said, it does not explain why the previous code does not work in GCC. It seems perfectly legal to me.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160222/b8afd8e9/attachment.html>


More information about the webkit-unassigned mailing list