Re: [PATCH] libstdc++: Fix std::uninitialized_value_construct for arrays [PR120397]

2025-06-12 Thread Tomasz Kaminski
On Thu, Jun 12, 2025 at 12:13 AM Jonathan Wakely wrote: > The std::uninitialized_{value,default}_construct{,_n} algorithms should > be able to create arrays, but that currently fails because when an > exception happens they clean up using std::_Destroy and in C++17 that > doesn't support destroyi

[PATCH] libstdc++: Fix std::uninitialized_value_construct for arrays [PR120397]

2025-06-11 Thread Jonathan Wakely
The std::uninitialized_{value,default}_construct{,_n} algorithms should be able to create arrays, but that currently fails because when an exception happens they clean up using std::_Destroy and in C++17 that doesn't support destroying arrays. (For C++20 and later, std::destroy does handle destroyi