<?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>143303</bug_id>
          
          <creation_ts>2015-04-01 05:21:56 -0700</creation_ts>
          <short_desc>Value assignment operator of Optional should be stricter</short_desc>
          <delta_ts>2015-04-02 08:55:13 -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>528+ (Nightly build)</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></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Antti Koivisto">koivisto</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>andersca</cc>
    
    <cc>benjamin</cc>
    
    <cc>cmarcelo</cc>
    
    <cc>commit-queue</cc>
    
    <cc>mmaxfield</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1081972</commentid>
    <comment_count>0</comment_count>
    <who name="Antti Koivisto">koivisto</who>
    <bug_when>2015-04-01 05:21:56 -0700</bug_when>
    <thetext>struct Foo { mutable Optional&lt;std::chrono::seconds&gt; s; };
Foo foo, foo2;
foo = foo2;

doesn&apos;t build because it tries to use wrong operator=.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1081973</commentid>
    <comment_count>1</comment_count>
      <attachid>249914</attachid>
    <who name="Antti Koivisto">koivisto</who>
    <bug_when>2015-04-01 05:25:13 -0700</bug_when>
    <thetext>Created attachment 249914
patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1082099</commentid>
    <comment_count>2</comment_count>
      <attachid>249914</attachid>
    <who name="Andreas Kling">kling</who>
    <bug_when>2015-04-01 13:54:38 -0700</bug_when>
    <thetext>Comment on attachment 249914
patch

OK</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1082101</commentid>
    <comment_count>3</comment_count>
    <who name="Antti Koivisto">koivisto</who>
    <bug_when>2015-04-01 14:02:53 -0700</bug_when>
    <thetext>https://trac.webkit.org/r182254</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1082124</commentid>
    <comment_count>4</comment_count>
    <who name="Myles C. Maxfield">mmaxfield</who>
    <bug_when>2015-04-01 15:41:32 -0700</bug_when>
    <thetext>Where&apos;s your test!?!?!?!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1082230</commentid>
    <comment_count>5</comment_count>
    <who name="Antti Koivisto">koivisto</who>
    <bug_when>2015-04-02 08:55:13 -0700</bug_when>
    <thetext>I don&apos;t think something like this requires a test. There are no functional changes. Code like http://trac.webkit.org/changeset/182271 just doesn&apos;t compile without this.

Note that Optional is simply our version of std::optional which is likely to be in C++17.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>249914</attachid>
            <date>2015-04-01 05:25:13 -0700</date>
            <delta_ts>2015-04-01 13:54:38 -0700</delta_ts>
            <desc>patch</desc>
            <filename>optional-assignment-strict.patch</filename>
            <type>text/plain</type>
            <size>1283</size>
            <attacher name="Antti Koivisto">koivisto</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XVEYvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFNvdXJjZS9XVEYvQ2hh
bmdlTG9nCShyZXZpc2lvbiAxODIyM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4MjIyNSkKKysrIFNv
dXJjZS9XVEYvd3RmL09wdGlvbmFsLmgJKHdvcmtpbmcgY29weSkKQEAgLTEyMiw3ICsxMjIsNyBA
QCBwdWJsaWM6CiAgICAgICAgIHJldHVybiAqdGhpczsKICAgICB9CiAKLSAgICB0ZW1wbGF0ZTx0
eXBlbmFtZSBVPgorICAgIHRlbXBsYXRlPHR5cGVuYW1lIFUsIGNsYXNzID0gdHlwZW5hbWUgc3Rk
OjplbmFibGVfaWY8c3RkOjppc19zYW1lPHR5cGVuYW1lIHN0ZDo6cmVtb3ZlX3JlZmVyZW5jZTxV
Pjo6dHlwZSwgVD46OnZhbHVlPjo6dHlwZT4KICAgICBPcHRpb25hbCYgb3BlcmF0b3I9KFUmJiB1
KQogICAgIHsKICAgICAgICAgZGVzdHJveSgpOwo=
</data>
<flag name="review"
          id="274754"
          type_id="1"
          status="+"
          setter="kling"
    />
          </attachment>
      

    </bug>

</bugzilla>