<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>283768</bug_id>
          
          <creation_ts>2024-11-27 11:24:43 -0800</creation_ts>
          <short_desc>SVGToOTFFontConversion.cpp:169:29: error: use of overloaded operator &apos;[]&apos; is ambiguous (with operand types &apos;ASCIILiteral&apos; and &apos;int&apos;)</short_desc>
          <delta_ts>2024-12-03 10:46:14 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>SVG</component>
          <version>Other</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Catanzaro">mcatanzaro</reporter>
          <assigned_to name="Michael Catanzaro">mcatanzaro</assigned_to>
          <cc>berto</cc>
    
    <cc>sabouhallawa</cc>
    
    <cc>tharkhay4</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2077925</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2024-11-27 11:24:43 -0800</bug_when>
    <thetext>WebKitGTK 2.47.2 does not build on i686:

In file included from /builddir/build/BUILD/webkitgtk-2.47.2-build/webkitgtk-2.47.2/redhat-linux-build/webkitgtk-6.0/WebCore/DerivedSources/unified-sources/UnifiedSource-8feba646-15.cpp:6:
/builddir/build/BUILD/webkitgtk-2.47.2-build/webkitgtk-2.47.2/Source/WebCore/svg/SVGToOTFFontConversion.cpp:169:29: error: use of overloaded operator &apos;[]&apos; is ambiguous (with operand types &apos;ASCIILiteral&apos; and &apos;int&apos;)
  169 |         m_result.append(code[0]);
      |                         ~~~~^~
/builddir/build/BUILD/webkitgtk-2.47.2-build/webkitgtk-2.47.2/redhat-linux-build/webkitgtk-6.0/WTF/Headers/wtf/text/ASCIILiteral.h:76:20: note: candidate function
   76 |     constexpr char operator[](size_t index) const { return m_charactersWithNullTerminator[index]; }
      |                    ^
/builddir/build/BUILD/webkitgtk-2.47.2-build/webkitgtk-2.47.2/Source/WebCore/svg/SVGToOTFFontConversion.cpp:169:29: note: built-in candidate operator[](const char *, int)
  169 |         m_result.append(code[0]);
      |                             ^
/builddir/build/BUILD/webkitgtk-2.47.2-build/webkitgtk-2.47.2/Source/WebCore/svg/SVGToOTFFontConversion.cpp:169:29: note: built-in candidate operator[](const volatile char *, int)
/builddir/build/BUILD/webkitgtk-2.47.2-build/webkitgtk-2.47.2/Source/WebCore/svg/SVGToOTFFontConversion.cpp:170:29: error: use of overloaded operator &apos;[]&apos; is ambiguous (with operand types &apos;ASCIILiteral&apos; and &apos;int&apos;)
  170 |         m_result.append(code[1]);
      |                         ~~~~^~
/builddir/build/BUILD/webkitgtk-2.47.2-build/webkitgtk-2.47.2/redhat-linux-build/webkitgtk-6.0/WTF/Headers/wtf/text/ASCIILiteral.h:76:20: note: candidate function
   76 |     constexpr char operator[](size_t index) const { return m_charactersWithNullTerminator[index]; }
      |                    ^
/builddir/build/BUILD/webkitgtk-2.47.2-build/webkitgtk-2.47.2/Source/WebCore/svg/SVGToOTFFontConversion.cpp:170:29: note: built-in candidate operator[](const char *, int)
  170 |         m_result.append(code[1]);
      |                             ^
/builddir/build/BUILD/webkitgtk-2.47.2-build/webkitgtk-2.47.2/Source/WebCore/svg/SVGToOTFFontConversion.cpp:170:29: note: built-in candidate operator[](const volatile char *, int)
/builddir/build/BUILD/webkitgtk-2.47.2-build/webkitgtk-2.47.2/Source/WebCore/svg/SVGToOTFFontConversion.cpp:171:29: error: use of overloaded operator &apos;[]&apos; is ambiguous (with operand types &apos;ASCIILiteral&apos; and &apos;int&apos;)
  171 |         m_result.append(code[2]);
      |                         ~~~~^~
/builddir/build/BUILD/webkitgtk-2.47.2-build/webkitgtk-2.47.2/redhat-linux-build/webkitgtk-6.0/WTF/Headers/wtf/text/ASCIILiteral.h:76:20: note: candidate function
   76 |     constexpr char operator[](size_t index) const { return m_charactersWithNullTerminator[index]; }
      |                    ^
/builddir/build/BUILD/webkitgtk-2.47.2-build/webkitgtk-2.47.2/Source/WebCore/svg/SVGToOTFFontConversion.cpp:171:29: note: built-in candidate operator[](const char *, int)
  171 |         m_result.append(code[2]);
      |                             ^
/builddir/build/BUILD/webkitgtk-2.47.2-build/webkitgtk-2.47.2/Source/WebCore/svg/SVGToOTFFontConversion.cpp:171:29: note: built-in candidate operator[](const volatile char *, int)
/builddir/build/BUILD/webkitgtk-2.47.2-build/webkitgtk-2.47.2/Source/WebCore/svg/SVGToOTFFontConversion.cpp:172:29: error: use of overloaded operator &apos;[]&apos; is ambiguous (with operand types &apos;ASCIILiteral&apos; and &apos;int&apos;)
  172 |         m_result.append(code[3]);
      |                         ~~~~^~
/builddir/build/BUILD/webkitgtk-2.47.2-build/webkitgtk-2.47.2/redhat-linux-build/webkitgtk-6.0/WTF/Headers/wtf/text/ASCIILiteral.h:76:20: note: candidate function
   76 |     constexpr char operator[](size_t index) const { return m_charactersWithNullTerminator[index]; }
      |                    ^
/builddir/build/BUILD/webkitgtk-2.47.2-build/webkitgtk-2.47.2/Source/WebCore/svg/SVGToOTFFontConversion.cpp:172:29: note: built-in candidate operator[](const char *, int)
  172 |         m_result.append(code[3]);
      |                             ^
/builddir/build/BUILD/webkitgtk-2.47.2-build/webkitgtk-2.47.2/Source/WebCore/svg/SVGToOTFFontConversion.cpp:172:29: note: built-in candidate operator[](const volatile char *, int)
/builddir/build/BUILD/webkitgtk-2.47.2-build/webkitgtk-2.47.2/Source/WebCore/svg/SVGToOTFFontConversion.cpp:1508:48: error: use of overloaded operator &apos;[]&apos; is ambiguous (with operand types &apos;ASCIILiteral&apos; and &apos;int&apos;)
 1508 |     m_result[directoryEntryOffset] = identifier[0];
      |                                      ~~~~~~~~~~^~
/builddir/build/BUILD/webkitgtk-2.47.2-build/webkitgtk-2.47.2/redhat-linux-build/webkitgtk-6.0/WTF/Headers/wtf/text/ASCIILiteral.h:76:20: note: candidate function
   76 |     constexpr char operator[](size_t index) const { return m_charactersWithNullTerminator[index]; }
      |                    ^
/builddir/build/BUILD/webkitgtk-2.47.2-build/webkitgtk-2.47.2/Source/WebCore/svg/SVGToOTFFontConversion.cpp:1508:48: note: built-in candidate operator[](const char *, int)
 1508 |     m_result[directoryEntryOffset] = identifier[0];
      |                                                ^
/builddir/build/BUILD/webkitgtk-2.47.2-build/webkitgtk-2.47.2/Source/WebCore/svg/SVGToOTFFontConversion.cpp:1508:48: note: built-in candidate operator[](const volatile char *, int)
/builddir/build/BUILD/webkitgtk-2.47.2-build/webkitgtk-2.47.2/Source/WebCore/svg/SVGToOTFFontConversion.cpp:1509:52: error: use of overloaded operator &apos;[]&apos; is ambiguous (with operand types &apos;ASCIILiteral&apos; and &apos;int&apos;)
 1509 |     m_result[directoryEntryOffset + 1] = identifier[1];
      |                                          ~~~~~~~~~~^~
/builddir/build/BUILD/webkitgtk-2.47.2-build/webkitgtk-2.47.2/redhat-linux-build/webkitgtk-6.0/WTF/Headers/wtf/text/ASCIILiteral.h:76:20: note: candidate function
   76 |     constexpr char operator[](size_t index) const { return m_charactersWithNullTerminator[index]; }
      |                    ^
/builddir/build/BUILD/webkitgtk-2.47.2-build/webkitgtk-2.47.2/Source/WebCore/svg/SVGToOTFFontConversion.cpp:1509:52: note: built-in candidate operator[](const char *, int)
 1509 |     m_result[directoryEntryOffset + 1] = identifier[1];
      |                                                    ^
/builddir/build/BUILD/webkitgtk-2.47.2-build/webkitgtk-2.47.2/Source/WebCore/svg/SVGToOTFFontConversion.cpp:1509:52: note: built-in candidate operator[](const volatile char *, int)
/builddir/build/BUILD/webkitgtk-2.47.2-build/webkitgtk-2.47.2/Source/WebCore/svg/SVGToOTFFontConversion.cpp:1510:52: error: use of overloaded operator &apos;[]&apos; is ambiguous (with operand types &apos;ASCIILiteral&apos; and &apos;int&apos;)
 1510 |     m_result[directoryEntryOffset + 2] = identifier[2];
      |                                          ~~~~~~~~~~^~
/builddir/build/BUILD/webkitgtk-2.47.2-build/webkitgtk-2.47.2/redhat-linux-build/webkitgtk-6.0/WTF/Headers/wtf/text/ASCIILiteral.h:76:20: note: candidate function
   76 |     constexpr char operator[](size_t index) const { return m_charactersWithNullTerminator[index]; }
      |                    ^
/builddir/build/BUILD/webkitgtk-2.47.2-build/webkitgtk-2.47.2/Source/WebCore/svg/SVGToOTFFontConversion.cpp:1510:52: note: built-in candidate operator[](const char *, int)
 1510 |     m_result[directoryEntryOffset + 2] = identifier[2];
      |                                                    ^
/builddir/build/BUILD/webkitgtk-2.47.2-build/webkitgtk-2.47.2/Source/WebCore/svg/SVGToOTFFontConversion.cpp:1510:52: note: built-in candidate operator[](const volatile char *, int)
/builddir/build/BUILD/webkitgtk-2.47.2-build/webkitgtk-2.47.2/Source/WebCore/svg/SVGToOTFFontConversion.cpp:1511:52: error: use of overloaded operator &apos;[]&apos; is ambiguous (with operand types &apos;ASCIILiteral&apos; and &apos;int&apos;)
 1511 |     m_result[directoryEntryOffset + 3] = identifier[3];
      |                                          ~~~~~~~~~~^~
/builddir/build/BUILD/webkitgtk-2.47.2-build/webkitgtk-2.47.2/redhat-linux-build/webkitgtk-6.0/WTF/Headers/wtf/text/ASCIILiteral.h:76:20: note: candidate function
   76 |     constexpr char operator[](size_t index) const { return m_charactersWithNullTerminator[index]; }
      |                    ^
/builddir/build/BUILD/webkitgtk-2.47.2-build/webkitgtk-2.47.2/Source/WebCore/svg/SVGToOTFFontConversion.cpp:1511:52: note: built-in candidate operator[](const char *, int)
 1511 |     m_result[directoryEntryOffset + 3] = identifier[3];
      |                                                    ^
/builddir/build/BUILD/webkitgtk-2.47.2-build/webkitgtk-2.47.2/Source/WebCore/svg/SVGToOTFFontConversion.cpp:1511:52: note: built-in candidate operator[](const volatile char *, int)
8 errors generated.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2077948</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2024-11-27 15:56:16 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/37207</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2078040</commentid>
    <comment_count>2</comment_count>
    <who name="Alberto Garcia">berto</who>
    <bug_when>2024-11-28 03:18:28 -0800</bug_when>
    <thetext>Also in armel / armhf.

FWIW this problem seems to happen only with clang, the gcc build works fine.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2078853</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-12-03 10:45:58 -0800</bug_when>
    <thetext>Committed 287287@main (0b149ed6d30f): &lt;https://commits.webkit.org/287287@main&gt;

Reviewed commits have been landed. Closing PR #37207 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2078854</commentid>
    <comment_count>4</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-12-03 10:46:14 -0800</bug_when>
    <thetext>&lt;rdar://problem/140862187&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>