<?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>198143</bug_id>
          
          <creation_ts>2019-05-22 15:33:10 -0700</creation_ts>
          <short_desc>[WHLSL] Detection of duplicate functions does not correctly deal with auto-generated setters and getters</short_desc>
          <delta_ts>2020-05-05 00:42:45 -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>WebGPU</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=195925</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="Robin Morisset">rmorisset</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>mmaxfield</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1538419</commentid>
    <comment_count>0</comment_count>
    <who name="Robin Morisset">rmorisset</who>
    <bug_when>2019-05-22 15:33:10 -0700</bug_when>
    <thetext>According to the spec, it is invalid to define an ander and a setter for the same field of the same type, as the ander leads to the creation of a setter, that will conflict with the user-defined one.
Because the implementation currently does not generate setters in this manner, but instead writes their code inline whenever it is needed (https://bugs.webkit.org/show_bug.cgi?id=195925), we won&apos;t correctly reject such programs if the ander/setter is never used.

The same problem exists for ander/getter.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1540088</commentid>
    <comment_count>1</comment_count>
    <who name="Myles C. Maxfield">mmaxfield</who>
    <bug_when>2019-05-29 13:34:45 -0700</bug_when>
    <thetext>I believe it is no longer possible for a user to define both an ander and a setter for the same field.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1540089</commentid>
    <comment_count>2</comment_count>
    <who name="Myles C. Maxfield">mmaxfield</who>
    <bug_when>2019-05-29 13:35:31 -0700</bug_when>
    <thetext>(In reply to Myles C. Maxfield from comment #1)
&gt; I believe it is no longer possible for a user to define both an ander and a
&gt; setter for the same field.

Whoops, disregard this comment, I misread the bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1649086</commentid>
    <comment_count>3</comment_count>
    <who name="Myles C. Maxfield">mmaxfield</who>
    <bug_when>2020-05-05 00:42:45 -0700</bug_when>
    <thetext>WHLSL is no longer relevant.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>