<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/64792>64792</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
clang: Incorrect call to copy ctor when RVO required
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
kelbon
</td>
</tr>
</table>
<pre>
```C++
struct not_movable {
not_movable() = default;
not_movable(not_movable&&) = delete;
};
struct type : not_movable {
};
int main() {
type{not_movable{}}; // clang throws error
}
```
And... When aggreagate paren init will be supported?((
https://godbolt.org/z/9MPqsfqM6
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxskk2Pmz4Qxj_NcBktApvwcuCQ_COk_2HVqof2WNl4Am4dm7XNRttPX0E2Cd1WGvEyzDzPTw8WIejBErWwO8DumIg5js63P8lIZxPp1FsL2RGyPZTZtf4Ddljq2l2vIfq5j2hd_H52r0IaQqjeJ7ZdYDWwBoEfUdFJzCYCv419mPvjrVzrtmgo0n0PquPjeQsT3yZC4Pt_U_29pm3Es9D2xnjnR1y1oDpsmarDIrGqILAOWIe9EXbAOHp3CUjeO__w2hjdg9w291alaYrfRrIohsGTGEQknIQni9rqiBdtDErCME-T85EU8G5lrbc6Y4xTAL6_Ig1OSWdi6vwArPsFrGueP7-E08tzmaiWq4Y3IqE2LxvGi6opdsnYnihvJPE8O7FeUV1xLlhDVZ3tCqkqWSW6ZRnjWZ3XWc2bbJdy1jOVnyQVqsjLJocio7PQJjXm9bx4JzqEmdqyqBqWGCHJhPW4MWbpgutHYGw5fb5ddp7kPAQoMqNDDA-VqKOhdk15-a__2955T33EXhiD0WHvpjfso_N4WXL88vUTenqZtSeVzN60H8LRcZxl2rszsG4xeb89Td79oD4C61a0AKxb0X8HAAD__9QT8XY">