<?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>212421</bug_id>
          
          <creation_ts>2020-05-27 11:26:37 -0700</creation_ts>
          <short_desc>-Wdeprecated-copy caused by Bitmap copy assignment operator</short_desc>
          <delta_ts>2020-05-27 13:16:18 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Web Template Framework</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</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>benjamin</cc>
    
    <cc>cdumez</cc>
    
    <cc>cmarcelo</cc>
    
    <cc>ews-watchlist</cc>
    
    <cc>mark.lam</cc>
    
    <cc>mcatanzaro</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1656460</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2020-05-27 11:26:37 -0700</bug_when>
    <thetext>Continued from bug #212190, r262030 introduced a warning spam with GCC:

introduced a nice GCC warning spam:

In file included from DerivedSources/JavaScriptCore/unified-sources/UnifiedSource-f0a787a9-2.cpp:5:
/home/mcatanzaro/Projects/WebKit/Source/JavaScriptCore/bytecode/BytecodeLivenessAnalysis.cpp:194:16: warning: implicitly-declared ‘constexpr WTF::Bitmap&lt;4&gt;::Bitmap(const WTF::Bitmap&lt;4&gt;&amp;)’ is deprecated [-Wdeprecated-copy]
  194 |         return result;
      |                ^~~~~~

because:

DerivedSources/ForwardingHeaders/wtf/Bitmap.h:480:13: note: because ‘WTF::Bitmap&lt;4&gt;’ has user-provided ‘void WTF::Bitmap&lt;bitmapSize, WordType&gt;::operator=(const WTF::Bitmap&lt;bitmapSize, WordType&gt;&amp;) [with long unsigned int bitmapSize = 4; WordType = unsigned int]’
  480 | inline void Bitmap&lt;bitmapSize, WordType&gt;::operator=(const Bitmap&amp; other)
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

To avoid the warning, we should either (a) remove the copy assignment operator, or (b) add a copy constructor. Either way would be fine, but in this case I&apos;d prefer (a) because I don&apos;t think the new copy assignment operator is needed. It uses a loop to manually copy the bits of the sole member variable, a std::array, but a default copy of the array should be equivalent (and possibly also a bit faster).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1656462</commentid>
    <comment_count>1</comment_count>
      <attachid>400356</attachid>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2020-05-27 11:31:46 -0700</bug_when>
    <thetext>Created attachment 400356
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1656464</commentid>
    <comment_count>2</comment_count>
      <attachid>400356</attachid>
    <who name="Mark Lam">mark.lam</who>
    <bug_when>2020-05-27 11:34:39 -0700</bug_when>
    <thetext>Comment on attachment 400356
Patch

Removal of the assignment operator is not an option.  This was added as a step for upcoming work.  I&apos;ll need to take a closer look at what the GCC complaint is and decide what the best solution is.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1656479</commentid>
    <comment_count>3</comment_count>
      <attachid>400356</attachid>
    <who name="Mark Lam">mark.lam</who>
    <bug_when>2020-05-27 11:45:36 -0700</bug_when>
    <thetext>Comment on attachment 400356
Patch

I stand corrected.  Michael pointed out on slack that the default assignment operator would take care of the job.  There&apos;s no need for my hand written one.

r=me if theAPI test bots are green.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1656525</commentid>
    <comment_count>4</comment_count>
      <attachid>400356</attachid>
    <who name="Mark Lam">mark.lam</who>
    <bug_when>2020-05-27 12:51:57 -0700</bug_when>
    <thetext>Comment on attachment 400356
Patch

API bots are green.  Landing this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1656537</commentid>
    <comment_count>5</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2020-05-27 13:15:52 -0700</bug_when>
    <thetext>Committed r262211: &lt;https://trac.webkit.org/changeset/262211&gt;

All reviewed patches have been landed. Closing bug and clearing flags on attachment 400356.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1656538</commentid>
    <comment_count>6</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-05-27 13:16:18 -0700</bug_when>
    <thetext>&lt;rdar://problem/63687389&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>400356</attachid>
            <date>2020-05-27 11:31:46 -0700</date>
            <delta_ts>2020-05-27 13:15:53 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-212421-20200527133145.patch</filename>
            <type>text/plain</type>
            <size>1849</size>
            <attacher name="Michael Catanzaro">mcatanzaro</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjYyMTk5CmRpZmYgLS1naXQgYS9Tb3VyY2UvV1RGL0NoYW5n
ZUxvZyBiL1NvdXJjZS9XVEYvQ2hhbmdlTG9nCmluZGV4IDA4YzYyMjk1NGRmMjIyZDQyNGY1Zjlh
ODczM2JlODNlNTU4NzQ0M2MuLmY1MzBmYTE0ZTFhMTZhNDhmYTE3N2RkNzUxMzI0YTVkNGU1Nzkw
ZTQgMTAwNjQ0Ci0tLSBhL1NvdX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