<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=http://email.email.llvm.org/c/eJylksmOozAQhp_GXEqDwGzh4ANpus99GGnO3gBHDka2SU_66acg6UVR30Yyci2un69cFk5d2e_JBJBOaZL1JOtInd3X7oboVxmhA9Icb5HFu6hl1IoU3S0CmHzuCD0Q2gIpelB64KuNpLiXkKb_sr_LHvF4dxf_duYI4iHyQDVwYwOYGZ4sn0d4M3GCOGnQ3jv_yfVQ9JGEqM-L89xfwQ0Qr4sGQhvkb2DiAT77wzZumFj1k16vz26Tm2JcwvZT-oJrlDIdnRLOxtT5ESPv-D3_vZxe_0zTKVGsUG3R8oSvcXKevWjlk9Vb9iCDLa0ile6MjrWXj-0X4p0QD10TwqoDGlVRlm0yMcWzsspzyUtRqKEYajVUlNeiFa08FDVPLBfaBkaqI6F01m-wS6BNqj75fwLDaEZpltMmr2hbNulwKPNa5lQKLg68rUmZ6TOOLt10tttJPNslxToGTFoTYvhK8hDMOGu9AyNhNNFq9sTn2UWQXvOogc_gxIazzZKDtFiEY7wYfBYL93qOt9fx01STnZ_t8P8AS3bsug>53449</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Cannot create an object of a class having parent with protected destructor
        </td>
    </tr>

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

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

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

<pre>
    This code
```
struct A {
protected:
  ~A() = default;
};

struct B : A {};
B b{};
```
fails in Clang with the error:
```
error: temporary of type 'A' has protected destructor
```
Demo: https://gcc.godbolt.org/z/ExvjPWhhj
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxtkctuqzAQhp_GbEZFxECAhRektOuzqHTWvkyAyMHINulJn_4MJL0oqmTkuf7zDVbOXMXbMAbQziDLOpa1bJ_dz-aG6BcdoQVWHW6R2buIOqJheXuLACVfWsZrxhtgeQcGj3KxkeX3FlZ13_ZP2QOVt3fxHzUHUA-RB6qjHG2AcYJnK6ce3sc4QBwQ0Hvnv7gemj6TEPE8Oy_9FdwR4nVGYLwi_goGGeBrP1rjhkldv-l1eHar3BDjHNah_JVOr3XaO6OcjanzPUU-6Hv5dzn9-TsMp8SI3DR5I5M4RoviWU6Ti6A9yoggJ3DqRNNXMgnayhAI6jLSkrP0OMXbrr8xJou34oGFaheVancmx9rL5_VE_esUcscQFgxklHlRNMkg8sLUKpdY66bSOSos0RyVamqdl6qSJrFSoQ2ClQfG-YTvsEmQzcouGQXPOM92vNqVvCmq9FgXu73eca2kqmWzZ0WGZ3q9dOVYf1DixYaklj5Q0o4hhu8k7T_2E-I2jvTlEgfnxSsan2xzxcb9HzbG1-Y">