<?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>235458</bug_id>
          
          <creation_ts>2022-01-21 15:18:19 -0800</creation_ts>
          <short_desc>Build failure with GCC 12: no matching function for call to &apos;end(LChar [7])&apos;</short_desc>
          <delta_ts>2022-01-24 12:29:33 -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>WebKitGTK</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=235445</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></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>bugs-noreply</cc>
    
    <cc>mcatanzaro</cc>
    
    <cc>mgorse</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1832908</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2022-01-21 15:18:19 -0800</bug_when>
    <thetext>Next challenge in attempting to build with GCC 12: something is wrong with IntegerToStringConversion.h, and it&apos;s unclear how to fix it. I&apos;ll need to try a few more things....

In file included from /builddir/build/BUILD/webkitgtk-2.35.1/Source/WTF/wtf/text/WTFString.h:30,
                 from /builddir/build/BUILD/webkitgtk-2.35.1/Source/WTF/wtf/URL.h:28,
                 from /builddir/build/BUILD/webkitgtk-2.35.1/Source/WTF/wtf/URL.cpp:28:
/builddir/build/BUILD/webkitgtk-2.35.1/Source/WTF/wtf/text/IntegerToStringConversion.h: In instantiation of &apos;void WTF::writeIntegerToBufferImpl(UnsignedIntegerType, CharacterType*) [with CharacterType = unsigned char; UnsignedIntegerType = short unsigned int; PositiveOrNegativeNumber NumberType = WTF::PositiveNumber]&apos;:
/builddir/build/BUILD/webkitgtk-2.35.1/Source/WTF/wtf/text/IntegerToStringConversion.h:95:84:   required from &apos;void WTF::writeIntegerToBuffer(IntegerType, CharacterType*) [with CharacterType = unsigned char; IntegerType = short unsigned int]&apos;
/builddir/build/BUILD/webkitgtk-2.35.1/Source/WTF/wtf/text/StringConcatenateNumbers.h:45:74:   required from &apos;void WTF::StringTypeAdapter&lt;Integer, typename std::enable_if&lt;is_integral_v&lt;CharacterType&gt;, void&gt;::type&gt;::writeTo(CharacterType*) const [with CharacterType = unsigned char; Integer = short unsigned int; typename std::enable_if&lt;is_integral_v&lt;CharacterType&gt;, void&gt;::type = void]&apos;
/builddir/build/BUILD/webkitgtk-2.35.1/Source/WTF/wtf/text/StringConcatenate.h:430:33:   recursively required from &apos;void WTF::stringTypeAdapterAccumulator(ResultType*, Adapter, Adapters ...) [with ResultType = unsigned char; Adapter = StringTypeAdapter&lt;char, void&gt;; Adapters = {StringTypeAdapter&lt;short unsigned int, void&gt;}]&apos;
/builddir/build/BUILD/webkitgtk-2.35.1/Source/WTF/wtf/text/StringConcatenate.h:430:33:   required from &apos;void WTF::stringTypeAdapterAccumulator(ResultType*, Adapter, Adapters ...) [with ResultType = unsigned char; Adapter = StringTypeAdapter&lt;StringView, void&gt;; Adapters = {StringTypeAdapter&lt;char, void&gt;, StringTypeAdapter&lt;short unsigned int, void&gt;}]&apos;
/builddir/build/BUILD/webkitgtk-2.35.1/Source/WTF/wtf/text/StringConcatenate.h:450:41:   required from &apos;WTF::String WTF::tryMakeStringFromAdapters(StringTypeAdapter, StringTypeAdapters ...) [with StringTypeAdapter = StringTypeAdapter&lt;StringView, void&gt;; StringTypeAdapters = {StringTypeAdapter&lt;char, void&gt;, StringTypeAdapter&lt;short unsigned int, void&gt;}]&apos;
/builddir/build/BUILD/webkitgtk-2.35.1/Source/WTF/wtf/text/StringConcatenate.h:469:37:   required from &apos;WTF::String WTF::tryMakeString(StringTypes ...) [with StringTypes = {StringView, char, short unsigned int}]&apos;
/builddir/build/BUILD/webkitgtk-2.35.1/Source/WTF/wtf/text/StringConcatenate.h:475:34:   required from &apos;WTF::String WTF::makeString(StringTypes ...) [with StringTypes = {StringView, char, short unsigned int}]&apos;
/builddir/build/BUILD/webkitgtk-2.35.1/Source/WTF/wtf/URL.cpp:152:26:   required from here
/builddir/build/BUILD/webkitgtk-2.35.1/Source/WTF/wtf/text/IntegerToStringConversion.h:69:26: error: no matching function for call to &apos;end(LChar [7])&apos;
   69 |     LChar* end = std::end(buf);
      |                  ~~~~~~~~^~~~~
In file included from /usr/include/c++/12/variant:36,
                 from /builddir/build/BUILD/webkitgtk-2.35.1/Source/WTF/wtf/StdLibExtras.h:32,
                 from /builddir/build/BUILD/webkitgtk-2.35.1/Source/WTF/wtf/FastMalloc.h:26,
                 from /builddir/build/BUILD/webkitgtk-2.35.1/Source/WTF/config.h:31,
                 from /builddir/build/BUILD/webkitgtk-2.35.1/Source/WTF/wtf/URL.cpp:27:
/usr/include/c++/12/initializer_list:101:5: note: candidate: &apos;template&lt;class _Tp&gt; constexpr const _Tp* std::end(initializer_list&lt;_Tp&gt;)&apos;
  101 |     end(initializer_list&lt;_Tp&gt; __ils) noexcept
      |     ^~~
/usr/include/c++/12/initializer_list:101:5: note:   template argument deduction/substitution failed:
/builddir/build/BUILD/webkitgtk-2.35.1/Source/WTF/wtf/text/IntegerToStringConversion.h:69:26: note:   mismatched types &apos;std::initializer_list&lt;_Tp&gt;&apos; and &apos;LChar*&apos; {aka &apos;unsigned char*&apos;}
   69 |     LChar* end = std::end(buf);
      |                  ~~~~~~~~^~~~~</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1833272</commentid>
    <comment_count>1</comment_count>
    <who name="Mike Gorse">mgorse</who>
    <bug_when>2022-01-24 06:15:32 -0800</bug_when>
    <thetext>I saw that, too, but only for 2.34.x. Including &lt;string&gt; fixes it there for me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1833359</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2022-01-24 09:14:13 -0800</bug_when>
    <thetext>(In reply to Mike Gorse from comment #1)
&gt; I saw that, too, but only for 2.34.x. Including &lt;string&gt; fixes it there for
&gt; me.

Huh, wouldn&apos;t have guessed that. Thanks....</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1833390</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2022-01-24 10:53:49 -0800</bug_when>
    <thetext>(In reply to Mike Gorse from comment #1)
&gt; I saw that, too, but only for 2.34.x. Including &lt;string&gt; fixes it there for
&gt; me.

That indeed allows me to build 2.35.1.

I will land this #include &lt;string&gt; anyway. Even if it&apos;s included from someplace else nowadays in trunk, it reduces the chance of trouble again in the future.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1833405</commentid>
    <comment_count>4</comment_count>
      <attachid>449833</attachid>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2022-01-24 11:22:27 -0800</bug_when>
    <thetext>Created attachment 449833
Patch for landing</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1833435</commentid>
    <comment_count>5</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2022-01-24 12:29:30 -0800</bug_when>
    <thetext>Committed r288460 (246346@main): &lt;https://commits.webkit.org/246346@main&gt;

All reviewed patches have been landed. Closing bug and clearing flags on attachment 449833.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>449833</attachid>
            <date>2022-01-24 11:22:27 -0800</date>
            <delta_ts>2022-01-24 12:29:32 -0800</delta_ts>
            <desc>Patch for landing</desc>
            <filename>bug-235458-20220124132226.patch</filename>
            <type>text/plain</type>
            <size>1076</size>
            <attacher name="Michael Catanzaro">mcatanzaro</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjg4NDQ4CmRpZmYgLS1naXQgYS9Tb3VyY2UvV1RGL0NoYW5n
ZUxvZyBiL1NvdXJjZS9XVEYvQ2hhbmdlTG9nCmluZGV4IDRlZWVkOGYxMWQ3MTk3NjJmZTg3OTM2
YzNkOTFhYTQyZmUyMDIxMWYuLjE2NzUzMGQ5ODBhOGVhOGEyNDRlOGIyMDM0YWM3NWFlMjIxZjcy
M2UgMTAwNjQ0Ci0tLSBhL1NvdXJjZS9XVEYvQ2hhbmdlTG9nCisrKyBiL1NvdXJjZS9XVEYvQ2hh
bmdlTG9nCkBAIC0xLDMgKzEsMTIgQEAKKzIwMjItMDEtMjQgIE1pY2hhZWwgQ2F0YW56YXJvICA8
bWNhdGFuemFyb0Bnbm9tZS5vcmc+CisKKyAgICAgICAgQnVpbGQgZmFpbHVyZSB3aXRoIEdDQyAx
Mjogbm8gbWF0Y2hpbmcgZnVuY3Rpb24gZm9yIGNhbGwgdG8gJ2VuZChMQ2hhciBbN10pJworICAg
ICAgICBodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9MjM1NDU4CisKKyAg
ICAgICAgVW5yZXZpZXdlZC4gSnVzdCBuZWVkIHRvICNpbmNsdWRlIDxzdHJpbmc+IGhlcmUuCisK
KyAgICAgICAgKiB3dGYvdGV4dC9JbnRlZ2VyVG9TdHJpbmdDb252ZXJzaW9uLmg6CisKIDIwMjIt
MDEtMjEgIFl1c3VrZSBTdXp1a2kgIDx5c3V6dWtpQGFwcGxlLmNvbT4KIAogICAgICAgICBbSlND
XSBSZWxheCBEYXRl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