<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/55690>55690</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            uninitialized member of the class template __policy_func
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          jsdejsde
      </td>
    </tr>
</table>

<pre>
    template <class _Rp, class... _ArgTypes> class __policy_func<_Rp(_ArgTypes...)>
https://github.com/llvm/llvm-project/blob/09c2b7c35af8c4bad39f03e9f60df8bd07323028/libcxx/include/__functional/function.h

The  member is not initialized in the first and not always in the second constructor. 
    __policy_storage __buf_;
  
This is problematic since the destructor may use this member in ~__policy_func() and other member functions.

    
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyVUttypCAQ_Rp8oWIxoDP64MPk9gFbebe4tEoKxRLcxP36bZk4mzyuhdBNn-4-HFDebE2EcXYyAiXiSTsZAm1_zYQ_0eTkeU7b69K_bTMEIl7oF6SdvbN6a7t10piYUqo7ELMIrxFO2DNh1yHGGZOvhL_i6G0cVpVrP6Lj3O9jeZgX_w46oqucV7iwWnN10aKUXaULJY2oOyag7s7MdJUy7CK4YLzaC1ilPz_RsJN2qwG02kQuWj9Jh-7h5MON1G1-G4DSEUYFC7WBTj5SO9lopbN_wKBNIyI6u4RI5WQSQLoPuYUjFkB7DOAU4rLq6Jec3mpT_O5CBQzIHnBDrV1LxOOBOXhgdxyogXIwymg1DXgWSD0MHLXpKDe6hn0b0QfxiZLLy8872VWpE2WPFZYDeqgQ8u8q7Ewz0whTi1pm0UYHzTp9F-Ir3XeJz-0R3F_Oj87Zurjmv2_chrDiA-OvZXmuWTY0ZalPvDCyqisG6iJrKKvSAKhKn4riXGROKnChIeUj4XyCD5pKoE3K58w2nHHOSl6y6lSJU15IOGsm9EUrZYTUpGCosnX5ziP3S58tTaKk1j5g0NkQw78gHtf2E0Bqh_XlGge_NO_BwP5nqXeTuP8FQOUZJg">